JSSS-Compiler
A altCSS: JavaScript-Based Style Sheets Preprocessor
Badges
Original
http://www.w3.org/Submission/1996/1/WD-jsss-960822
Install
Using npm.
$ npm install -g jsss-compiler
Confirm.
$ jsss -h
Usage:
jsss style.js Compile JSSS to stdout
jsss style.js -o style.css Compile JSSS to file
Options:
-h, --help Print this message
-o, --out Output to single file
-e, --encoding JSSS File encoding (default: utf8)
-v, --version Print jsss-compiler version
Example
style.js
tagsh1color = 'red';tagsh1fontSize = '15px'; idsfoocolor = 'red';idsfoofontSize = '15px';idsbarcolor = 'blue';idsbarfontSize = '10px'; classesfooallcolor = 'red';classesfooallfontSize = '15px';classesbarh1color = 'blue';classesbarh1fontSize = '10px'; color = 'red';fontSize = '10px';
Compile
$ jsss style.js -o style.css
style.css