confrc

1.0.5 • Public • Published

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.

/confrc/

    Package Sidebar

    Install

    npm i confrc

    Weekly Downloads

    3

    Version

    1.0.5

    License

    GPL-3.0-or-later

    Unpacked Size

    9.54 kB

    Total Files

    8

    Last publish

    Collaborators

    • soldy