sub-module-config
v1.0.4
Published
node js config for submodule.
Downloads
5
Maintainers
Readme
sub-module-config
Node.js sub module pakages.When you tring to run mutiple project of version in single server or port then sub-module-config allow mutiple env for induvidual submodule
Installation
$ npm install sub-module-config
API
var config = require('sub-module-config')
config.init(__dirname)
console.log(config.env)
Server file have to contain anyone of .env,dev.env or production.env according to server file run--- node server.js,NODE_ENV=dev node server.js or NODE_ENV=production node server.js