Awesome
observable-conf
Listen for changes in your conf config
Install
$ npm install observable-conf
Usage
const Conf = require('observable-conf');
const config = new Conf();
config.select('unicorn').subscribe(value => {
console.log(value);
//=> '🦄'
})
config.set('unicorn', '🦄');
API
Conf([options])
Returns a new instance.
options
Any of the conf options.
Instance
An extended conf instance.
select(key)
Returns an Observable.
key
Type: string
Key in the config to observe for changes.
Related
- conf - Simple config handling for your app or module
- cache-conf - Simple cache config handling for your app or module
License
MIT © Sam Verschueren