Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including atomic-css-stats with all npm packages installed. Try it out:

var atomicCssStats = require("atomic-css-stats")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

atomic-css-stats v0.1.0-beta.4

Provides information about regular and compiled to atomic CSS classes files size (gzipped)

atomic-css-stats

Provides stats on .css files size (gzipped and brotli). Also compiles the styles to atomic CSS classes for compariaon.

npm i -g atomic-css-stats

Accepts a space separated list of paths or URL to css files.

acss-stats ./file.css https://example.com/bundle.css [...]

example:

$ acss-stats https://abs.twimg.com/a/1532484778/css/t1/twitter_core.bundle.css

  ==============
| https://abs.twimg.com/a/1532484778/css/t1/twitter_core.bundle.css
 ==============

Original file:

Size: 182.72 KB
Gzipped size: 34.08 KB
Brotli size: 28.95 KB

---

Compiled to atomic CSS classes:

Size: 60.05 KB
Gzipped size: 15.48 KB
Brotli size: 12.83 KB

Contributing

This package is part of the DSS monorepo.

License

MIT

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free