msetting

0.0.4 • Public • Published

msetting

Using MongoDB as a centralized configuration

Usage

var col = require('monk')('localhost/test').get('woot');
var setting = require('msetting')(col);

setInterval(function () {
  console.log(444444444);
  col.insert({ a: 'b', updateDate: new Date(), ts: Date.now() })
}, 1000);

setInterval(function () {
  console.log(setting.get('a'));
}, 1000);

for more detail see source code and cofigstore

TODO

  1. bootstrap process
  2. error process

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.4
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.4
    0
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i msetting

Weekly Downloads

0

Version

0.0.4

License

ISC

Last publish

Collaborators

  • copycat