Hot load (hot require) for NodeJS. It's like JRebel but for NodeJS.

Hot code reload for NodeJS


// lib.js
module.exports = {
    "key": "value"

// index.js
hotload = require("hotload");

//lib = require("lib");
lib = hotload("./lib.js");

    // normally it would print 'value' indefinitely,
    // but at runtime try to change value of "key" in lib.js
    // and save lib.js file and see that module will be reloaded
    // and new value will be printed.

}, 1000);


npm install hotload

Reload library without application shut down. Not suitable for production use.

hotload = require("hotload");