0.0.4 • Published 10 years ago

refresh-config v0.0.4

Weekly downloads
6
License
MIT
Repository
github
Last release
10 years ago

refresh-config

NPM version Build Status

refresh config when config file modified.

Install

npm install refresh-config

Usage

var Config = require('refresh-config');

var config = Config('./config.json');

config.on('error', function (err) {
  console.error(err.stack);
})
config.on('change', function () {
  console.log(config.data); // the new data object
  console.log(config.stale); // the stale object
  console.log(config.removed);  // removed keys
});

License

MIT

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago