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