Skip to content

Soldy/confrc

Repository files navigation

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.

Clean code

No more dotenv crash on linux

JSON format support

Forced type safety.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published