hotreloader
Node.js modules hot reloader. No need the server to restart.
Install
npm install hotreloader
Usage
const reload = ;// const myModule = require('./myModule.js');// for myModule.js to reloading you can do so:const count = // it's the same like require('./myModule.js') console; console;
## myModule.js
var cnt = 0; var count = = > return cnt++;moduleexports=count;
## Then in a router(as example based on koa.js)
Please make changes in a file and then in a router call that module file
const reload = ;var count = ;router
## Chokidar
Fs watchifying based on chokidar. Its options hardcoded as follows:
{ ignored: /[\/\\]\./, persistent: true,awaitWriteFinish:{stabilityThreshold:2000,pollInterval:100} }
## Projects
hotreloader.js
works in the module 'koa-rend'
## Happy coding!
## License
MIT