Files
developer-roadmap/roadmaps/nodejs/content/--watch@812bVEzxwTsYzLG_PmLqN.md
Arik Chakma 274082fd77 feat: clean roadmap content and sync scripts (#10181)
* refactor: clean to roadmap content

* refactor: move shared helpers into scripts/lib
2026-07-28 05:45:17 +06:00

761 B

--watch

The --watch flag in Node.js is a powerful feature introduced in Node.js version 19 that enables automatic reloading of your Node.js application whenever changes are detected in the specified files.

Here's How it works:

  • You run your Node.js script with the --watch flag: $ node --watch your_script.js
  • Node.js starts watching the specified file (or directory) for changes.
  • Whenever a change is detected, Node.js automatically restarts the script

Visit the following resources to learn more: