1.0.0 • Published 5 years ago

cssstats-diff v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

cssstats-diff

Generate a report of cssstats that differ from one stylesheet to another.

Install

npm install cssstats-diff

Usage

The cssstats-diff CLI is the best way to use this:

# diff the stats between two CSS files
npx cssstats-diff before.css after.css

# ...or a file and a URL
npx cssstats-diff https://example.com/main.css main.css

# ...or from two URLs
npx cssstats-diff https://unpkg.com/my-package@{latest,canary}/dist/main.css

The default output format is tab-separated values, which can be easily pasted into most spreadsheet applications. Pass --format=markdown for a Markdown table, e.g.

keydeltabeforeafter
size-5.1 kB401325396228
gzipSize-798 B7553274734
rules.total-6051695109
selectors.total-7263016229
selectors.class-7262786206
selectors.pseudoClass-6651645
selectors.pseudoElement-7407400
declarations.total-1161055410438