Node.js Added Watch-Mode

2 hours ago 2

@@ -618,6 +618,19 @@ Set V8's thread pool size which will be used to allocate background jobs.

618618

If set to 0 then V8 will choose an appropriate size of the thread pool based on the number of online processors.

619619

If the value provided is larger than V8's maximum, then the largest value will be chosen.

620620

.

621+

.It Fl -watch

622+

Starts Node.js in watch mode. When in watch mode, changes in the watched files cause the Node.js process to restart.

623+624+

By default, watch mode will watch the entry point and any required or imported module. Use --watch-path to specify what paths to watch.

625+

.

626+

.It Fl -watch-path

627+

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.

628+629+

This will turn off watching of required or imported modules, even when used in combination with --watch.

630+

.

631+

.It Fl -watch-kill-signal

632+

Customizes the signal sent to the process on watch mode restarts.

633+

.

621634

.It Fl -zero-fill-buffers

622635

Automatically zero-fills all newly allocated Buffer and SlowBuffer instances.

623636

.

Read Entire Article