Most Popular Tutorials
Most Popular Tutorials :-

Simply Easy Learning at Your Fingertips. Click Tutorials Menu to view More Tutorial List





what is nodemon module in node.js?

The nodemon Module is a node.Js module that develop node.js based applications by automatically restarting the node application when file changes in the directory are detected. nodemon saving lot of development time.

When you are using node you have to restart on your own to see the changes you made But nodemon watches the particular path for any changes.If you make any changes in your file, nodemon will restart it for you.

File Name :

npm install -g nodemon

nodemon version

nodemon monitors your project directory and automatically restarts your node application when it detects any changes in your node application. so you do not have to stop and restart your applications. any changes in application then nodemon automatically detect your changes to take effect.

if we accessing file with nodemon you no need to stop server and restart it only one line of command will save restart server time.

File Name :

nodemon "filename"
here filename is the name of your file.(server.js)

When you run a server using the command node server.js, after every change in your code you have to again run the node server.js command and reload the page to see the changes. but Nodemon auto-updates the server

How to run nodemon?

C:\ittutorial> nodemon app.js


[nodemon] 2.0.22
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: js,mjs,json
[nodemon] starting `node app.js`





Previous Next


Trending Tutorials




Review & Rating

0.0 / 5

0 Review

5
(0)

4
(0)

3
(0)

2
(0)

1
(0)

Write Review Here