Skip to content
This repository has been archived by the owner on Aug 28, 2022. It is now read-only.

0.0.3

Latest
Compare
Choose a tag to compare
@bulyshko bulyshko released this 04 Jul 10:09
· 11 commits to master since this release

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');