figr
Autobootstrap your config. Looks for $CWD/config and loads the config files into a config object.
Installation
npm install figr
File Tree
- /config
--- all.js
--- development.json
--- production.js
--- staging.json
--- test.js
e.g. NODE_ENV=development
would result in a merge of all
's exports object and the development
object.
i.e. you can use module.exports or a JSON file.
API
var figr = ;var config = ;
You can also pass in a configurable object (i.e. supports #get and #set)
e.g.
var express = app = figr = config = ; console