A lightweight, battle tested, fast, css parser in JavaScript
Why?
Please read the story behind it here
Demo
Check out plunker demo
Development
Following commands will prepare development enviroment by installing dependencies:
npm install
And to execute unit tests and produce css.min.js, execute
grunt
How To Install
npm install jotform-css.js
How To Use
On the browser
Simply parse css string, and log the output
On the server
var cssString = ' .someSelector { margin:40px 10px; padding:5px}';//require parser constructorvar cssjs = ;//initialize parser objectvar parser = ;//parse css stringvar parsed = parser; console;