confucius

0.1.0 • Public • Published

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

Package Sidebar

Install

npm i confucius

Weekly Downloads

5

Version

0.1.0

License

MIT

Last publish

Collaborators

  • dignifiedquire