Node.js built-in alternative to nodemon

fedyk

Andrii Fedyk

Posted on August 31, 2024

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.

💖 💪 🙅 🚩
fedyk
Andrii Fedyk

Posted on August 31, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related