![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
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 bicon
cssi --css css/ --repo /Users/local_repo/
cssi --css css/ --repo /Users/local_repo/ --tpl "'*.html' '*.php'" --out myreportname.html --reverse
cssi --css css/ --repo /Users/local_repo/ --config filename.json
cssi --css http://example.com/site.css --repo /Users/local_repo/ --debug
In 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.