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.
Managing environment variables can be a pain. Env helps make that better.
Env is an evolving project based which came out of discussions with @joemccann and @clintandrewhall. I don't consider this package fully baked yet.
npm install env
Add an env.json file to your repo.
{
"DB_HOST": 1,
"DB_PORT": 1,
"DB_USER": 1,
"DB_PASS": 1
}
var env = require('env')()
env.ok(function(err) {
if (!err) return
console.error(err)
process.exit(1)
})
// Yes, it's SYNC, so you can do this too!
function handleEnv (err) {
if (!err) return
process.exit(1)
}
if (env.ok(handleEnv)) {
var port = env.get('SETUP_PORT')
server.listen(port)
}
Env is sync like require, so it's tasks can be accomplished before app execution.
FAQs
Environment variable manager
The npm package env receives a total of 7,358 weekly downloads. As such, env popularity was classified as popular.
We found that env 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.