![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
settings-and-secrets
Advanced tools
##settings and secrets
A NodeJS module to help manage configuration settings.
##Getting started
var settings = require('settings-and-secrets')();
var myStr = settings.prop1;
By default the module will look for config.json and secrets.json in the root folder of the project. Environment variables will override config file values. When first adding secrets.json remember to add it to the .gitigrnore file so it doesn't get added to the repository. All settings value will be available as properties of settings.
##Installation
npm install --save settings-and-secrets
##Configuration To add custom settings (which will override any settings of the same name in config.json or secrets.json) pass in a custom settings object as the first argument to the constructor.
var settings = require('settings-and-secrets')({
rootDir: __dirname
});
To change to json files to be used pass in an array of new files (with full paths) as the second argument to the constructor.
var settings = require('settings-and-secrets')(null,['./settings/connectionStrings.json','./settings/urls.json']);
Note that the new files array will replace the existing config file list not merge with it so if you still want to use the default config and secrets files you wil have to add those too.
To ignore environment variables and always use config files values set ignoreEnvVars to true.
var settings = require('settings-and-secrets')(null,null,true);
FAQs
A NodeJS module to help manage configuration settings.
The npm package settings-and-secrets receives a total of 2 weekly downloads. As such, settings-and-secrets popularity was classified as not popular.
We found that settings-and-secrets 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.