Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Easily run npm scripts only when in (or not in) a CI environment.
npm i --save-dev if-ci
if-ci
ships with two commands, the obvious if-ci
as well as if-not-ci
.
To use them, just prepend them to any existing command in an npm script.
Will only run the given command when in a CI environment.
{
"name": "my-great-package",
"version": "1.2.34",
"scripts": {
"maybeEcho": "if-ci echo \"hello!\""
}
}
If you have multiple commands in a script, just use it again:
{
"name": "my-great-package",
"version": "1.2.34",
"scripts": {
"maybeEcho": "if-ci echo \"hello\" && if-ci echo \"world!\""
}
}
Works inversely to if-ci
and will only run the given command when
not in a CI environment.
{
"name": "my-great-package",
"version": "1.2.34",
"scripts": {
"maybeEcho": "if-not-ci echo \"hello\" && if-not-ci echo \"world!\""
}
}
Pull requests and any issues found are always welcome.
feat-make-better
MIT © Bo Lingen / citycide
FAQs
Easily run npm scripts only when in (or not in) a CI environment.
The npm package if-ci receives a total of 164 weekly downloads. As such, if-ci popularity was classified as not popular.
We found that if-ci 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.