1.0.5 • Published 6 years ago
@ssmr9dt/hotreload v1.0.5
hotreload
This is Hot reload
Setup
$ npm i ssmr9dt/hotreload
About
Read test/example.js
var hotreload = require("@ssmr9dt/hotreload");
(function _Exec(){
setTimeout(_Exec, 1000);
hotreload(__dirname + "/server.d/no1.js", function(err, module){
no1 = module || null;
});
if (no1 && typeof(no1) === "function") {
no1();
}
})();