conf-env-demo
v0.1.0
Published
conf-env demo
Downloads
3
Readme
conf-env use demo
sample
$ npm install conf-env-demo
$ cd ./node_modules/conf-env-demo
Then
Test development
$ export NODE_ENV=development && node app.js
Test production
$ export NODE_ENV=production && node app.js
Test staging
$ export NODE_ENV=staging && node app.js
Output
package name is : conf-env-demo
current config env is : development
current-> development.js
local -> read from local config
Enter any key to quit
quiting...