Skip to content
This repository was archived by the owner on Feb 8, 2023. It is now read-only.
alibaba-archivePublic archive

About

refresh config when config file changed

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

Repository files navigation

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

About

refresh config when config file changed

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages