
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
A nodejs environment config loader supporting global/local style configuration and env style (dev/test/staging/prod)
Config file loader based on 2 different configuration styles:
Supporting multiple file formats:
Sane defaults included…
Given the following directory structure in your project root:
config/
db.js
api.js
var config = require('configuror')();
config will contain values from files in config/ merged.
by adding files with .local. preceding the extension allows overriding config options with machine specific values.
config/
db.js
api.js
db.local.js
by adding files with .env. preceding the extension allows overriding config options with environment specific values.
config/
db.js
api.js
api.test.js
NODE_ENV=test node app.js
With NODEENV set to test the api.test.js will override values in api.js
Both global/local and environment style configurations can be mixed.
There are no predefined environments such as dev/test/staging/production so you can use any name desired for the environments.
Any of the above mentioned file formats can be used. db.local.yml will override db.js.
JS
module.exports = {
host: "example.com"
}
JSON
{
"user": "jim"
}
YAML
ipaddress: 127.0.0.1
FAQs
A nodejs environment config loader supporting global/local style configuration and env style (dev/test/staging/prod)
We found that configuror 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.