compare-stylesheet
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