0.0.4 • Published 2 years ago

mereconf v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Mere Conf

Mere configuration loader

How to use

Install

npm install --save mereconf

Create a config.json file :

{
  "application": {
    "port": 8080
  }
}

Override value with env

To enable 12 factor app way of overriding config :

APPLICATION_PORT=9090

Use configuration value :

import {config} from 'mereconf';
console.log(config.application.port);

Update configuration value :

config.application.port=8080;
config.save();
0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago