1.0.8 • Published 7 years ago

more-express-config v1.0.8

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

A more friendly way to use config file when you have many env,let the env config to merge default config

npm i more-express-config --save

demo

config/app.json

{
  "hello":"app in default"
}

config/env/app.json

{
  "hello":"app in test"
}

app.js

var configure = require('more-express-config');

console.log(configure.get('app'));

NODE_ENV=test node app.js

output

{
  "hello":"app in test"
}

support .js, .json, .node, .yaml, .yml

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago