observable-conf

0.1.1 • Public • Published

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

/observable-conf/

    Package Sidebar

    Install

    npm i observable-conf

    Weekly Downloads

    1

    Version

    0.1.1

    License

    MIT

    Last publish

    Collaborators

    • samverschueren