Rerun Node when content Change
To achieve this use nodemon.
Install nodemon:
npm install -g nodemon
Then run nodemon instead of node
nodemon index.js
That's it now when you change your files nodemon will rerun node and you will have the latest version of your work up and running.
Written by lonsomehell
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Node
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#