node.js require with watcher to simplify local modules development
polpetta is just one of those cases where modified files could be reloaded automatically in order to have easy updates of the
.njs logic but any module development could be simplified testing, even in console, same stuff over and over without passing manually through the require cache.
// npm install -g require-updated var requireUpdated = require('require-updated'); // any time the file should be reloaded once modified requireUpdated(moduleName).onCall();
As usual, and those are good to understand how
requireUpdated works, here tests
The usual Mit Style