node-refresh
v1.1.2
Published
It will delete a cache on require before require the module again.
Downloads
2
Readme
node-refresh
It will delete a cache on require before require the module again.
Install
$ npm install node-refresh
Usage
const refresh = require('node-refresh')
let mod = refresh('./module')
const update = () => {
mod = refresh('./module', __dirname)
}
someTrigger.on('watch', update)
License
MIT