superenv

a subset of rc that does environment and configuration parsing

A subset of rc that pulls configuration variables from JSON and ini configuration files and environment variables.

var superenv = require('superenv');
 
// looks for ~/.mapbox.rc and so on, returns 
// an object 
var env = superenv('mapbox');

superenv(prefix)

Given a prefix that forms the name of configuration files and the prefix of environment variables, give settings.

BSD / MIT / Apache2, same as rc, because this is based on rc by Dominic Tarr