0.1.0 • Published 12 years ago
confucius v0.1.0
Confucius
Confused configuration for us all.
Installation
$ npm install --save confuciusUsage
var confucius = require('confucius');
var config = confucius('myAppName', {
env: 'dev',
defaults: defaults
});This will synchronously
- Load the file
config.<env>.yaml' fromprocess.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 test0.1.0
12 years ago