Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
css-selectors-count
Advanced tools
Ensure your CSS won't be discarded by IE 9 and below because of crazy stylesheets limitation of legacy IE.
Count selectors in your CSS file in order to make sure it don't exceed the limitation of legacy IE browsers.
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}
});
$ npm run test
$ npm run coverage
MIT
FAQs
Ensure your CSS won't be discarded by IE 9 and below because of crazy stylesheets limitation of legacy IE.
The npm package css-selectors-count receives a total of 166 weekly downloads. As such, css-selectors-count popularity was classified as not popular.
We found that css-selectors-count demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.