@lingua/config
v1.0.0
Published
Node.js module for convienently loading config files from one source for multiple co-dependent modules
Downloads
1
Readme
Node.js module for convienently loading config files from one source for multiple co-dependent modules
$ npm install @lingua/config
Usage
During app setup:
const config = require('@lingua/config');
config.setPath('/folder/with/config');
Reading config values:
const config = require('@lingua/config');
const httpConfig = config.file('http');
console.log(httpConfig.port);