Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/karolis-sh/postcss-stats
- Owner: karolis-sh
- License: mit
- Created: 2018-11-12T05:21:56.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2023-10-16T20:27:20.000Z (over 1 year ago)
- Last Synced: 2024-09-21T09:13:05.572Z (4 months ago)
- Topics: css, cssstats, postcss, postcss-plugins
- Language: JavaScript
- Homepage:
- Size: 1.99 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
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