This content originally appeared on DEV Community and was authored by Andrii Fedyk
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.
This content originally appeared on DEV Community and was authored by Andrii Fedyk
Andrii Fedyk | Sciencx (2024-08-31T08:50:30+00:00) Node.js built-in alternative to nodemon. Retrieved from https://www.scien.cx/2024/08/31/node-js-built-in-alternative-to-nodemon/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.