xtconf
v4.1.0
Published
Configuration module based on environment.
Readme
xtconf
Configuration based on environment. Additionally it will load your settings into environment variables.
Install
npm install xtconf --saveUsage
Create a config folder and then json files for each environment like config.development.json, config.production.json
\config
-config.json
-config.development.json
-config.production.json
-config.test.jsonvar config = require('xtconf')();
config.get('setting');
// OR
process.env.SETTINGYou can also create a config.json to share settings against multiple environments

