
Security News
Feross on the 10 Minutes or Less Podcast: Nobody Reads the Code
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.
packagesettings
Advanced tools
A package to manage the runtime settings of your project.
Let's say you have two servers that need the same project to be run on each but they need to be run on different ports. This package makes it easy to have the same code on each but the programs run with different settings.
var packageSettings = require('packagesettings');
// If no file is specified or the file doesn't contain a value for `port` then
// the value here will be used.
var defaults = {
port: 8000
};
// If you have been given an argument when starting up treat it as the name
// of the settings file (in JSON format). If not then use `config.json` in
// the current directory.
if (process.argv.length === 3) {
var config = packageSettings.init(defaults, process.argv[2], true);
} else {
var config = packageSettings.init(defaults, __dirname + '/config.json', true);
}
FAQs
Simple Runtime Settings and Config
The npm package packagesettings receives a total of 3 weekly downloads. As such, packagesettings popularity was classified as not popular.
We found that packagesettings 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
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.