Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/johno/unusedcss
Retrieve the unused CSS from a web page, useful for page CSS analytics.
https://github.com/johno/unusedcss
Last synced: 2 months ago
JSON representation
Retrieve the unused CSS from a web page, useful for page CSS analytics.
- Host: GitHub
- URL: https://github.com/johno/unusedcss
- Owner: johno
- License: mit
- Created: 2014-12-12T04:42:06.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-27T07:21:26.000Z (almost 10 years ago)
- Last Synced: 2024-10-19T17:29:32.655Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 10.2 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# unused-css
[![Build Status](https://travis-ci.org/johnotander/unusedcss.svg?branch=master)](https://travis-ci.org/johnotander/unusedcss)
Retrieve the unused CSS from a web page. This is useful for page analytics.
## Installation
```
npm i --save unusedcss
```## Usage
```javascript
var unusedCss = require('unusedcss');unusedCss('https://example.com');
// => { declarationsCount: 123, declarations: [...], selectorsCount: 456, selectors: [...] }
```#### Using the CLI
```
unusedcss url [url]
```## Acknowledgements
* [uncss](https://github.com/giakki/uncss)
* [rework-css](https://github.com/reworkcss/css)
* [get-css](https://github.com/jxnblk/get-css.git)## License
MIT
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull RequestCrafted with <3 by [John Otander](http://johnotander.com) ([@4lpine](https://twitter.com/4lpine)).