Node.js built-in alternative to nodemon

Andrii Fedyk - Aug 31 - - Dev Community

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
Enter fullscreen mode Exit fullscreen mode

More details can be found here https://nodejs.org/api/cli.html#--watch-path.

. .
Terabox Video Player