to get install nodemon in node js code example
Example 1: install nodemon
# Install nodemon
npm install nodemon
# Install nodemon globally on your machine
npm install -g nodemon
# Install nodemon on your project as dev-dependency
npm install nodemon --save-dev
Example 2: starting nodemon server
nodemon ./server.js localhost 8080