environment-config
Generic support for environment-specific configuration.
Installation
npm install environment-config
Loading Configuration
Simple usage:
var envConfig = ; envConfig;
If you want to override the environment that is chosen (e.g., based on command-line options), you may pass the environment name as the first argument:
envConfig;
Querying Configuration Options
After you have loaded configuration (see above), you may access config options from any module:
var config = config; console;