
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
node-getenv
Advanced tools
Get and parse environment variables more easily.
npm i node-getenv --save
const env = require('node-getenv')
// PORT=8080 node index.js
const port = env.getNum('PORT') // 8080 (number)
// CONSUMER_ON=on node index.js
env.getBool('CONSUMER_ON') // true
// node index.js
env.getNum('CONCURRENCY', 4) // 4 (default value)
// node index.js
env.requireNum('CONCURRENCY') // throw error
env.requireNumOrExit('CONCURRENCY') // log error, then process exit
getNum(key, defaults)
Get environment variate in number type.
If the environment variate is undefined or not a valid number, return the default value.
getStr(key, defaults)
Get environment variate in string type.
If the environment variate is undefined, return the default value.
getBool(key, defaults)
Get environment variate in boolean type, supported values without case sensitive:
Truly: true, yes, on, open, t, y, 1.
Falsely: false, no, off, close, f, n, 0.
If the environment variate is undefined or unsupported, return the default value.
bindEnv(defaultValues)
Bind environment variates with default values, then returns them. It has no effect on real environmental variables (in process.env).
License: MIT
FAQs
Get and parse environment variables more easily.
We found that node-getenv 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
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.