Simple CSS tokenizerThis is a library for parsing stylesheets.
Unlike proper tokenizers, it is not designed for precision, it is designed for speed.
Code works in browser and in Node.js
What does it do?It takes css code, splits it into array of selector and rule tokens. It can also build css from array of tokens, that can be used for stuff like simple nested css parser.
UsageSee unit tests for sample code.
This library was originally designed for private project, so there isn't much documentation.