prepr

JSON →
library 2.0.1 ·javascript
verified May 1, 2026

String preprocessor implementing C/GLSL preprocessor-style directives (#define, #if, #ifdef, #elif, #else, #endif) for JavaScript environments. Version 2.0+ uses ESM and uses 'subscript' for expression evaluation. Designed for glsl-transpiler, it supports variable interpolation and macro functions. Lightweight, no external dependencies. Ideal for preprocessing GLSL shader code or any string that benefits from compile-time conditionals.

total hits 16
actors 5 distinct systems
last hit 3d ago AhrefsBot
MetaBot
3
GPTBot
2
ClaudeBot
1
Humans
2

top countries 🇺🇸 United States · 🇫🇷 France · 🇨🇦 Canada · 🇪🇸 Spain