package.json. It means later we are able to require the module in our
nodemonhowever works a little differently. It is a command line utility that gets executed from the terminal. It is going to be a completely new way to start our application.
npm install nodemon -g
nodemon is a global untility of your machine. Then, this command can be used anywhere in your machine and does not need to
be in your project folder.
nodemon to run our app, we type
> nodemon app.js
[nodemon] 1.17.5[nodemon] to restart at any time, enter `rs`[nodemon] watching: *.*[nodemon] starting `node app.js`starting app...Sarting notes.js[nodemon] clean exit - waiting for changes before restart
Now, whenever you make change to
nodemon will rerun your app.
Isn’t it awesome?