Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Node.js module to autoload config JSON
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
test
.gitignore
.travis.yml
README.md
index.js
package.json

README.md

json-config

Node.js module to auto load JSON config files based on process.env, and fall back to preset options or defaults

Default Usage

var config = require('json-config')();
// Will require: ./config/local.json

Override default values

var config = require('json-config')({
  config_dir: "/path/to/config",
  default_env: "development"
});
// Will require: /path/to/config/development.json

Installation

$ npm install json-config

Build Status

Something went wrong with that request. Please try again.