Skip to content

ssmr9dt/hotreload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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();
  }
})();

About

auto reload file for nodejs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published