Skip to content
pull configuration variables from JSON and ini configuration files and environment variables
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
test
.travis.yml
README.md
index.js
package.json

README.md

Build Status

superenv

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

Example

var superenv = require('superenv');

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

API

superenv(prefix)

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

LICENSE

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

Something went wrong with that request. Please try again.