Skip to content

447491480/more-express-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published