conf-env-demo

0.1.0 • Public • Published

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... 

Package Sidebar

Install

npm i conf-env-demo

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • jerrywu