Nodemon is one of the most useful node packages that save a lot of time during code changes. Normally every time we make changes to the backend code, it requires a server restart for reflecting changes.
Nodemon is a solution for this repetative task. This package autorestarts the server when the code changes are saved.
Installing Nodemon
npm install -g nodemon
Nodemon Website: https://nodemon.io/
Next time while running use :
nodemon server.js
Next time when u make any change to code and hit the save, the nodemon takes care of the server restart. We don’t need to worry about it.