DEV Community

Andrii Fedyk
Andrii Fedyk

Posted on

Node.js built-in alternative to nodemon

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.

Top comments (0)