{
  "id": "node-watch-mode-table",
  "kind": "table",
  "slug": "node-watch-mode",
  "iil_id": null,
  "note_url": "https://iinventedlight.com/library/notes/node-watch-mode/",
  "title": "node --watch restarts the process when the entry file or its imports change",
  "columns": [
    "name",
    "source",
    "detail"
  ],
  "rows": [
    {
      "name": "--watch",
      "source": "Node.js docs (API)",
      "detail": "added in v18.11.0 and v16.19.0. Restarts on changes to the entry point and its required or imported modules."
    },
    {
      "name": "--watch-path",
      "source": "Node.js docs (API)",
      "detail": "starts Node.js in watch mode and specifies what paths to watch. This turns off watching of required or imported modules, so list every path you need."
    },
    {
      "name": "--watch-kill-signal",
      "source": "Node.js docs (API)",
      "detail": "customizes the signal sent to the process on watch mode restarts."
    },
    {
      "name": "--watch-preserve-output",
      "source": "Node.js docs (API)",
      "detail": "keeps the console output between restarts."
    }
  ],
  "related_slugs": [
    "node-process-and-console",
    "node-esm"
  ],
  "license": "CC-BY-4.0",
  "source_license": "MIT (Node.js docs (API)); MIT (Node.js docs (Learn)); prose restates cited source lines in own words",
  "as_of": "2026-11-18",
  "status": "fill-draft-20261118",
  "note": "Restated from the note's GREEN sources; check those sources before relying on a value."
}