confe
Simple config file management.
Top level keys that include the special "extends" key will include, and overwrite, keys from that top level key. This process is recursive.
The two required arguments can be set via the enviroment variables;
or provided inline (in order);
- path to config file
- top level key name
Installation
$ npm install -g confe
Examples
The following examples show you how to use confe.
var confe = require('confe');
var config = confe('./config.json', 'dev');
var config = confe('./config.json', 'local-developer1');
var config = confe('./config.json', 'local-developer2');
var config = confe();
Running tests
$ npm test