Skip to content

Commit d80ef2a

Browse files
dario-piotrowiczaduh95
authored andcommitted
doc: add all watch-mode related flags to node.1
PR-URL: #58719 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
1 parent 4dc6b4c commit d80ef2a

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
@@ -628,6 +628,19 @@ Set V8's thread pool size which will be used to allocate background jobs.
628628
If set to 0 then V8 will choose an appropriate size of the thread pool based on the number of online processors.
629629
If the value provided is larger than V8's maximum, then the largest value will be chosen.
630630
.
631+
.It Fl -watch
632+
Starts Node.js in watch mode. When in watch mode, changes in the watched files cause the Node.js process to restart.
633+
634+
By default, watch mode will watch the entry point and any required or imported module. Use --watch-path to specify what paths to watch.
635+
.
636+
.It Fl -watch-path
637+
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.
638+
639+
This will turn off watching of required or imported modules, even when used in combination with --watch.
640+
.
641+
.It Fl -watch-kill-signal
642+
Customizes the signal sent to the process on watch mode restarts.
643+
.
631644
.It Fl -zero-fill-buffers
632645
Automatically zero-fills all newly allocated Buffer and SlowBuffer instances.
633646
.

0 commit comments

Comments
 (0)