csc

css-selectors-count

Ensure your CSS won't be discarded by IE 9 and below because of crazy stylesheets limitation of legacy IE.

Showing:

Popularity

Downloads/wk

517

GitHub Stars

0

Maintenance

Last Commit

6yrs ago

Contributors

1

Package

Dependencies

1

Size (min+gzip)

12.4KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

css-selector-count Build Status npm version

Count selectors in your CSS file in order to make sure it don't exceed the limitation of legacy IE browsers.

Usage

var csc = require('css-selectors-count');
var fs = require('fs');

fs.readFile('style.css', {encoding: 'utf8'}, function(err, file) {
  if(err) throw err;
  console.log(csc(file)); // return a object like { rules: 1, selectors: 10}
});

Scripts

$ npm run test
$ npm run coverage

License

MIT

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100