confucius
v0.1.0
Published
Simple json config.
Downloads
10
Maintainers
Readme
Confucius
Confused configuration for us all.
Installation
$ npm install --save confucius
Usage
var confucius = require('confucius');
var config = confucius('myAppName', {
env: 'dev',
defaults: defaults
});
This will synchronously
- Load the file
config.<env>.yaml' from
process.cwd()` and parse it. - Load all ENV variables starting with
MYAPPNAME_
and merge into the result. - Deep merge the defaults object onto the result.
- Return the resulting object.
Development
Clone and run npm install
.
Execut the tests with
$ npm test