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 ./se…


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


Print Share Comment Cite Upload Translate Updates
APA

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/

MLA
" » Node.js built-in alternative to nodemon." Andrii Fedyk | Sciencx - Saturday August 31, 2024, https://www.scien.cx/2024/08/31/node-js-built-in-alternative-to-nodemon/
HARVARD
Andrii Fedyk | Sciencx Saturday August 31, 2024 » Node.js built-in alternative to nodemon., viewed ,<https://www.scien.cx/2024/08/31/node-js-built-in-alternative-to-nodemon/>
VANCOUVER
Andrii Fedyk | Sciencx - » Node.js built-in alternative to nodemon. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/08/31/node-js-built-in-alternative-to-nodemon/
CHICAGO
" » Node.js built-in alternative to nodemon." Andrii Fedyk | Sciencx - Accessed . https://www.scien.cx/2024/08/31/node-js-built-in-alternative-to-nodemon/
IEEE
" » Node.js built-in alternative to nodemon." Andrii Fedyk | Sciencx [Online]. Available: https://www.scien.cx/2024/08/31/node-js-built-in-alternative-to-nodemon/. [Accessed: ]
rf:citation
» Node.js built-in alternative to nodemon | Andrii Fedyk | Sciencx | 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.

You must be logged in to translate posts. Please log in or register.