1.0.0 • Published 4 years ago

compare-stylesheet v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

compare-stylesheet

npm version npm downloads Coveralls Github

JavaScript methods (and TypeScript bindings) to normalize a stylesheet by the rules, properties and values it contains.

This allows for comparison by contents (equality, superset).

It uses csso to minify the stylesheet, and remove redundant code.

After this, it parses the rest, looking for @rules, selectors, properties and values and checks them for equivalence.

It (intentionally) ignores the order of the rules, so a more loose comparison can be made.

Basic Usage

Installation

Docs

API

License

MIT