macro-cc

0.1.1 • Public • Published

MacroCC

Build Status Coverage Status

NPM

FOSSA Status

A useful javascript Conditional Compilation macro.

Example

//#define a = 233
var a = /*# a */ / 2
//#if a > 100
console.log(100)
//#else
console.log(0)
//#end
console.log('hello macroCC!')

cc:

var a = 233 / 2
console.log(100)
console.log('hello macroCC!')

License

MIT

/macro-cc/

    Package Sidebar

    Install

    npm i macro-cc

    Weekly Downloads

    2

    Version

    0.1.1

    License

    MIT

    Last publish

    Collaborators

    • shitake