--watch

A Node.js flag that restarts your program automatically whenever one of the files it loaded changes.

In more detail

node --watch server.js is handy in development and replaces tools such as nodemon. --watch-path lets you choose which folders to watch.

Related terms

Taught in

References