This module has moved and is now available at https://github.com/jonkemp/inline-css/tree/master/packages/css-rules. This repository is no longer maintained.
Returns a parse tree for a CSS source.
Install with npm
npm install --save css-rules
var parseCSS = require('css-rules');
var rules = parseCSS(css);
rules.forEach(function (rule) {
console.log(rule[0]);
console.log(rule[1]);
});
The code for this module was originally taken from the Juice library.
MIT