xtconf

4.1.0 • Public • Published

xtconf

npm version Build Status

Configuration based on environment. Additionally it will load your settings into environment variables.

Install

npm install xtconf --save

Usage

Create a config folder and then json files for each environment like config.development.json, config.production.json

\config
 -config.json
 -config.development.json
 -config.production.json
 -config.test.json
var config = require('xtconf')();
config.get('setting');
// OR
process.env.SETTING

You can also create a config.json to share settings against multiple environments

Readme

Keywords

Package Sidebar

Install

npm i xtconf

Weekly Downloads

1,882

Version

4.1.0

License

BSD

Unpacked Size

77.5 kB

Total Files

8

Last publish

Collaborators

  • kev_nz