1.0.4 • Published 1 year ago

sub-module-config v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

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