Skip to content

SamVerschueren/observable-conf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Listen for changes in your conf config

Resources

License

Stars

Watchers

Forks

Packages

No packages published