0.1.0 • Published 10 years ago

confucius v0.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
10 years ago

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' 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 test