
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.
Configuration handler, accepts multiple file formats, and overriding over multiple directories and filenames. Main usage: require('jus-config')(configNames, dirNames, callback).
Jus-Config is a Node.JS module that will help you manager your configuration files, supporting multiple formats, and ability to load and merge multiple files over multiple directories.
Suppose you want to make your app's port configurable. You'll have these two configuration files:
// "config/default.json"
// This is the default options
{ "host": "localhost"
, "port": 3000 }
// "config/prod.json"
// This is, for example, your unversionned env-specific configuration
{ "port": 80 }
Then you can load your configuration files this way:
var conf = require('jus-config')
, express = require('express')
, app = express.createServer()
// Load configuration from "config/default.json" and/or "config/prod.json"
conf.load(['default', 'prod'], function(err, config) {
// config = { "host": "localhost", "port": 80 }
app.listen(config.port, config.host)
})
npm install jus-config
or add "jus-config" as a dependency in your package.json and call npm install.
git clone the repository git@github.com:naholyr/node-jus-config.git in node_modules/jus-config.
You're ready to go.
FAQs
Configuration handler, accepts multiple file formats, and overriding over multiple directories and filenames. Main usage: require('jus-config')(configNames, dirNames, callback).
We found that jus-config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 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.

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.