0.0.1-alpha0 • Published 7 years ago
confrc v0.0.1-alpha0
confrc
Independent, simple, universe compatible, dotenv replacement config manager.
JSON way
config format
{
'config':'value'
}init
const confrc = require('confrc').base;check if config exist
confrc.check('someConfig')config read
let someConfig = confrc.get('someConfig');more example
const confrc = require('confrc')).confrc;
if(!confrc.check('someConfig')){
process.exit(5);
};
let someConfig = confrc.get('someConfig');Benefits
Imutable response
No more accidental config value change in the code.