4.1.0 • Published 6 years ago

xtconf v4.1.0

Weekly downloads
2,802
License
BSD
Repository
github
Last release
6 years ago

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

4.1.0

6 years ago

4.0.1

6 years ago

4.0.0

6 years ago

3.0.0

7 years ago

2.0.0

9 years ago

1.0.0

10 years ago

0.0.2

11 years ago

0.0.1

11 years ago