Skip to content

Commit 4d5ee24

Browse files
dario-piotrowicznodejs-github-bot
authored andcommitted
doc: add all watch-mode related flags to node.1
PR-URL: nodejs#58719 Reviewed-By: Yagiz Nizipli <[email protected]>
1 parent 529967a commit 4d5ee24

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

doc/node.1

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,19 @@ Set V8's thread pool size which will be used to allocate background jobs.
621621
If set to 0 then V8 will choose an appropriate size of the thread pool based on the number of online processors.
622622
If the value provided is larger than V8's maximum, then the largest value will be chosen.
623623
.
624+
.It Fl -watch
625+
Starts Node.js in watch mode. When in watch mode, changes in the watched files cause the Node.js process to restart.
626+
627+
By default, watch mode will watch the entry point and any required or imported module. Use --watch-path to specify what paths to watch.
628+
.
629+
.It Fl -watch-path
630+
Starts Node.js in watch mode and specifies what paths to watch. When in watch mode, changes in the watched paths cause the Node.js process to restart.
631+
632+
This will turn off watching of required or imported modules, even when used in combination with --watch.
633+
.
634+
.It Fl -watch-kill-signal
635+
Customizes the signal sent to the process on watch mode restarts.
636+
.
624637
.It Fl -zero-fill-buffers
625638
Automatically zero-fills all newly allocated Buffer instances.
626639
.

0 commit comments

Comments
 (0)