compare-stylesheet
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i compare-stylesheet

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

2.79 MB

Total Files

16

Last publish

Collaborators

  • tbjgolden