require-updated
node.js require with watcher to simplify local modules development
Simplified Reload
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-updatedvar requireUpdated = require('require-updated'); // any time the file should be reloaded once modifiedrequireUpdated(moduleName).onCall();
Tests Included
As usual, and those are good to understand how requireUpdated
works, here tests
License
The usual Mit Style