0.1.1 • Published 7 years ago

observable-conf v0.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

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

  • conf - Simple config handling for your app or module
  • cache-conf - Simple cache config handling for your app or module

License

MIT © Sam Verschueren