require-updated

0.1.2 • Public • Published

require-updated

node.js require with watcher to simplify local modules development

build status

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-updated
var requireUpdated = require('require-updated');
 
// any time the file should be reloaded once modified
requireUpdated(moduleName).onCall();

Tests Included

As usual, and those are good to understand how requireUpdated works, here tests

License

The usual Mit Style

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i require-updated

    Weekly Downloads

    5

    Version

    0.1.2

    License

    none

    Last publish

    Collaborators

    • webreflection