nodemon.json code example
Example 1: install nodemon globally
npm install -g nodemon
Example 2: install nodemon
npm install nodemon --save-dev
Example 3: nodemon package.json start
{
"name": "abc",
"version": "0.0.1",
"description": "my server",
"scripts": {
"start": "nodemon my_file.js"
Example 4: nodemon node
npm install -g nodemon
Example 5: nodemon script
# Install nodemon
npm i nodemon
# Write a script like ...
"scripts": {
"start":"nodemon index.js"
}
# Start in your terminal with something like ...
nodemon ./server.js localhost 8000
Example 6: nodemon a npm run command
nodemon --exec npm run dev:test