Node.js built-in alternative to nodemon
The nodemon is a popular library for running and restarting Node.js processes on file changes. All LTS Node.js support an option --watch-path, which allows to replace nodemon:
// before
nodemon --inspect ./server.js
// after
node --inspect --watch-path=./ ./server.js
More details can be found here https://nodejs.org/api/cli.html#--watch-path.
Top comments (0)