Security News
Research
Supply Chain Attack on Rspack npm Packages Injects Cryptojacking Malware
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Simple node CLI utility that runs the specified command if condition evaluates to true.
Intended to run inside of an NPM script when a false evaluation should just exit the script
cli-if [compare] [expected] [actual] [runIfTrue]
compare
: performs a case-sensitive evaluation of two valuesexpected
: expected valueactual
: actual value to compare expected
withrunIfTrue
: command that gets executed if condition evaluates to trueThis will run the command the npm run doSomething
cli-if contains test testing npm run doSomething
This will exit without running the npm run doSomething
command
cli-if contains testing 123 npm run doSomething
FAQs
Basic CLI comparison utility
The npm package cli-if receives a total of 4 weekly downloads. As such, cli-if popularity was classified as not popular.
We found that cli-if 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
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.
Security News
Sonar’s acquisition of Tidelift highlights a growing industry shift toward sustainable open source funding, addressing maintainer burnout and critical software dependencies.