1.0.5 • Published 3 years ago

confrc v1.0.5

Weekly downloads
3
License
GPL-3.0-or-later
Repository
github
Last release
3 years ago

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.

1.0.5

3 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1-rc5

5 years ago

1.0.1-rc4

5 years ago

1.0.1-rc2

5 years ago

1.0.1-rc1

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.1-alpha0

6 years ago