Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/karolis-sh/postcss-stats

Simple package that prints your css stats to console
https://github.com/karolis-sh/postcss-stats

css cssstats postcss postcss-plugins

Last synced: 3 months ago
JSON representation

Simple package that prints your css stats to console

Awesome Lists containing this project

README

        

# postcss-stats

A simple 1 dependency PostCSS plugin to print stats to the console.

Uses [cssstats] under the hood.

[![npm version][version-badge]][version]
![Node.js CI](https://github.com/karolis-sh/postcss-stats/workflows/Node.js%20CI/badge.svg)
[![License: MIT][license-badge]][license]

[![code style: prettier][code-style-badge]][code-style]

## Installation

`npm i -D postcss-stats` or `yarn add --dev postcss-stats`

## Usage

Just add the `postcss-stats` plugin:

```javascript
postcss().use(postcssStats()).process(css);
```

And it will output the stats table to the console:

![sample output][sample-output]

## References

-

## License

MIT

[sample-output]: /docs/sample-output.png
[cssstats]: https://github.com/cssstats/core
[version-badge]: https://badge.fury.io/js/postcss-stats.svg
[version]: https://www.npmjs.com/package/postcss-stats
[license-badge]: https://img.shields.io/badge/License-MIT-yellow.svg
[license]: https://opensource.org/licenses/MIT
[code-style-badge]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg
[code-style]: https://github.com/prettier/prettier