
Security News
New React Server Components Vulnerabilities: DoS and Source Code Exposure
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.
CSS Selector Scene Investigation. Analyses a git codebase for unused CSS selectors against a given CSS files set

cssi: CSS Selector Scene Investigation. Analyses a git codebase for unused CSS selectors
Install the module with: npm -g install cssi
https://www.npmjs.org/package/cssi
cssi
Usage: cssi --css bla.css --repo /path/to/repo [options]
--css: file | dir | url - css to be parsed
--repo: /full/path/to/local/repo - local repo where git-grep will search for css
--reverse: finds not the last, but the first commit where the selector was changed
--exclude: "string" or ["array", "of", "strings"] - exclude selectors that contains these strings, to avoid known false positives like icon fonts
--tpl: "*.ext" - glob of files that should be checked for selectors. Default = "'*.tmpl' '*.inc' '*.js'"
--debug: shows extra debug information
--out: filename.html - different report filename. Default is a normalized version of css_path-filename.html
--link: "https://github.com/bitbonsai/cssi/commit/{sha}" - link to web git show. Can be any valid URL, {sha} is replaced with commit hash
--config: file.json - load or replace arguments from config file (must be valid json)
cssi --css css/sample_gen_profile.css --repo /Users/local_repo/ --exclude biconcssi --css css/ --repo /Users/local_repo/cssi --css css/ --repo /Users/local_repo/ --tpl "'*.html' '*.php'" --out myreportname.html --reversecssi --css css/ --repo /Users/local_repo/ --config filename.jsoncssi --css http://example.com/site.css --repo /Users/local_repo/ --debugIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
Copyright (c) 2014 Mauricio Wolff
Licensed under the MIT license.
FAQs
CSS Selector Scene Investigation. Analyses a git codebase for unused CSS selectors against a given CSS files set
We found that cssi 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
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.