@keltroth/config

0.0.6 • Public • Published

@keltroth/config

Configuration loader

How to use

Install

npm install --save @keltroth/config

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();

Package Sidebar

Install

npm i @keltroth/config

Weekly Downloads

0

Version

0.0.6

License

MIT

Unpacked Size

4.21 kB

Total Files

5

Last publish

Collaborators

  • django.janny