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.
argv-config-file
Advanced tools
Pass a js or json configuration file on the command line to a Node.js application. Configuration merging is done using config-extend.
npm install --save argv-config-file
const argvConfigFile = require('argv-config-file');
let config = argvConfigFile({
// Default config
// Extended using the file passed on the command line
foo: ['bar'],
biz: 'baz'
});
module.exports = {
// Custom config
foo: ['array', 'override']
}
{
"foo": ["array", "override"]
}
node app.js -c /some/directory/my-config.js
node app.js --config=/some/directory/my-config.json
{
foo: ['array', 'override'],
biz: 'baz'
}
FAQs
Pass a js configuration file on the command line.
The npm package argv-config-file receives a total of 1 weekly downloads. As such, argv-config-file popularity was classified as not popular.
We found that argv-config-file 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.