jscc

JSON →
library 1.1.1 ·javascript maintenance
verified Jun 4, 2026

jscc is a tiny, fast preprocessor for conditional compilation and compile-time variable replacement in text files, inspired by the C preprocessor. It supports conditional inclusion/exclusion of blocks using directives like #if, #ifdef, #else, and #endif, and can replace variables with their values at compile-time. Written in JavaScript with TypeScript definitions, it works in Node.js >=6.0 and has minimal dependencies. Unlike general-purpose preprocessors, jscc is optimized for small to medium codebases, processes entirely in memory, and generates sourcemaps. Current stable version is 1.1.1, with no major updates since 2020, indicating a maintenance status.