cyberalien/simple-tokenizer

This package is abandoned and no longer maintained. No replacement package was suggested.

Simple CSS tokenizer

1.0.2 2017-04-25 19:45 UTC

This package is auto-updated.

Last update: 2021-09-14 15:16:28 UTC


README

This is a library for parsing stylesheets.

Unlike proper tokenizers, it is not designed for precision, it is designed for speed.

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.

Usage

See unit tests for sample code.

This library was originally designed for private project, so there isn't much documentation.

License

This library is licensed under MIT license. That means you can use it in both open source and commercial projects.