nodemon is a tool that helps develop Node.js based applications by automatically restarting the node application when file changes in the directory are detected.
How to install it globally?
npm install -g nodemon
Then you can use it anywhere as nodemon script.js
and, every time script.js
changes, the execution will restart with the new code, avoiding repetitive calls to node script.js
, for instance.