confrc
v1.0.5
Published
config manager
Downloads
18
Maintainers
Readme
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.