Home

Awesome

observable-conf Build Status

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

License

MIT © Sam Verschueren