This repository has been archived by the owner on Aug 28, 2022. It is now read-only.
Specific environment can be set by passing env
argument.
Usage
$ tree
.
├── test.js
├── configs
│ ├── config.json
│ └── config.development.json
└── ...
$ cat test.js
var developmentConfig = require('config.json')('./configs/config.json', 'development');
var productionConfig = require('config.json')('./configs/config.json', 'production');