
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
Synchronously reads config.json or config/*.json from process.cwd() or APP_ROOT environment variable, replacing occurrences of {{APP_ROOT}} in the JSON accordingly.
Synchronously reads config.json or config//.json from process.cwd() or APP_ROOT environment variable, replacing occurrences of {{APP_ROOT}} in the JSON accordingly.
1.1.2
npm install configwd
or in package.json
{
...
"dependencies": {
"configwd": "1.1.x"
}
}
var config = require('configwd');
For a folder setup like this:
APP_ROOT
config
config.json
development
barf.json
production
hurl.json
If config.json looks like:
{
"environment": "development",
"something": "else"
}
the resulting config will be:
{
"environment": "development",
"something": "else",
"app_root": "/path/to/app",
"barf" {
/* whatever is in config/development/barf.json */
}
}
This way of handling environments/namespaces is more restrictive than I'd like. Trying to think of a better way, but needed this for now.
FAQs
Synchronously reads config.json or config/*.json from process.cwd() or APP_ROOT environment variable, replacing occurrences of {{APP_ROOT}} in the JSON accordingly.
The npm package configwd receives a total of 10 weekly downloads. As such, configwd popularity was classified as not popular.
We found that configwd 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
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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.