
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
nfs-config-resolver
Advanced tools
npm install nfs-config-resolver --save
Create configs folder within your project directory
Create common.js development.js production.js files inside configs directory
// common.js
module.exports = {
"host":"localhost",
"port":80
};
prefix key with @ to allow a parameter to be overriden with environment parameter
// development.js
module.exports = {
"port":81,
"mongodb":{
"@host:MONGO_HOST": "localhost"
"@port:MONGO_PORT": "27017"
},
"@mode": "admin"
};
// production.js
module.exports = {
"port":82
};
You can override configuration with environment parameter
// run with environment NODE_ENV=development MONGO_HOST=182.166.12.2 MODE=customer
const config = require('nfs-config-resolver')();
console.log(config)
/*
{
"port":81,
"mongodb":{
"host": "182.166.12.2"
"port": "27017"
},
"mode": "customer"
}
*/
// run with environment NODE_ENV = production
const config = require('nfs-config-resolver')();
console.log(config.port)
// 82
FAQs
[](https://travis-ci.org/nodeframe/config-resolver) [](https://www.npmjs.com/package/nfs-config-resolver)
We found that nfs-config-resolver demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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 researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.