Configuration loader

npm install confrodo
19 downloads in the last day
69 downloads in the last week
260 downloads in the last month
## Basic Usage

var confrodo = require("confrodo")
  , config
  , filename = "myconfig.json"
  , defaults = { "foo":"bar", "meow":"mix" };

// You may pass in an object, a filename,
// the string "ARGV", or the string "ENV".
// Options passed in later will override attributes
// with the same name from previous options.
config = confrodo(defaults, filename, "ARGV", "ENV");


Files may either be a valid json file or a javascript
file that returns a json object in modules.exports.

Objects are json objects (not arrays).

`"ARGV"` will load any command line options (see [optimist](

`"ENV"` will load environment variables.

Confrodo also will create an `env` property you can use to choose a file:


var confrodo = require("confrodo")
  , filename = __dirname + "/" + confrodo.env + ".json"
  , config = confrodo(filename);


See LICENSE for copyright info.
npm loves you