Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
CSSC
Please report issues on [Github] (https://github.com/afelix/cssc/issues).
For feedback, suggestions, etc. write to skryzhanovsky@ya.ru.
Prerequisites:
To install:
git clone git://github.com/afelix/cssc.git
Prerequisites:
To install (global):
npm install cssc -g
To update:
npm update cssc
To uninstall:
npm uninstall cssc
Run bin/cssc
(when installed from git), you will need to have nodejs 0.4.x or newer installed — http://nodejs.org
Run cssc
(when installed from npm).
Usage:
cssc
shows usage information
cssc <filename>
counts CSS tokens in <filename> and outputs the result to stdout
cssc <in_filename> <out_filename>
cssc -i <in_filename> -o <out_filename>
cssc --input <in_filename> --output <out_filename>
counts CSS tokens in <in_filename> and outputs the result to <out_filename>
cssc -h
cssc --help
shows usage information
cssc -v
cssc --version
shows the version number
Example:
$ echo ".foo { p: v } .foo, .bar + .car { p: v }" > test.css
$ cssc test.css
Total selector groups: 2
Total simple selectors: 3
Total unique simple selectors: 2
Sample CSS:
.foo {
p: v
}
.foo, .bar + .car {
p: v
}
Here:
.foo
and .bar + .car
are so called simple selectors;.bar + .car
is selector group.So in resulting statistics you will see:
.foo
and .foo, .bar + .car
;.foo
, .foo
and .foo, .bar + .car
;.foo
and .bar + .car
.FAQs
CSSC — CSS counter
The npm package cssc receives a total of 4 weekly downloads. As such, cssc popularity was classified as not popular.
We found that cssc 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.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.