Previously we need to restart the node server when any changes are made in any of the file to see that change in the app
As a solution to this nodemon
was introduced: So that nodemon will automatically restart the server when we make changes in any of the files
New Era, New Solution
With the release of node version v19.0.0
, Now we don't need any external package like nodemon
to restart the server. The solution is built-in into node
NOTE: This new feature is only available for node version 18.11 and up
So now instead of running:
nodemon <filename>.js
We can use the watch flag for node:
node --watch <filename>.js