Skip to content
This repository has been archived by the owner on Jun 23, 2019. It is now read-only.

zacanger/lvcnf

Repository files navigation

lvcnf

A library for live configuration changes.


Installation

npm i lvcnf

Usage

const Conf = require('lvcnf')

const config = new Conf(initialConfig)

config.get('foo.bar.baz')
config.set('foo.bar.baz.quux', 'whatever')
config.delete('foo.bar')
config.merge(someNewConfigObject) // merges with current config
config.overwrite(someNewConfigObject) // overwrites
config.get() // => all config

License

MIT