@@ -170,9 +170,8 @@ exec('echo "The \\$HOME variable is $HOME"');
170170// The $HOME variable is escaped in the first instance, but not in the second
171171```
172172
173- * Note* : Never pass unsanitized user input to this function. Any input
174- containing shell metacharacters may be used to trigger arbitrary command
175- execution.
173+ ** Never pass unsanitized user input to this function. Any input containing shell
174+ metacharacters may be used to trigger arbitrary command execution.**
176175
177176``` js
178177const { exec } = require (' child_process' );
@@ -218,8 +217,8 @@ If `timeout` is greater than `0`, the parent will send the signal
218217identified by the ` killSignal ` property (the default is ` 'SIGTERM' ` ) if the
219218child runs longer than ` timeout ` milliseconds.
220219
221- * Note * : Unlike the exec(3) POSIX system call, ` child_process.exec() ` does not
222- replace the existing process and uses a shell to execute the command.
220+ Unlike the exec(3) POSIX system call, ` child_process.exec() ` does not replace
221+ the existing process and uses a shell to execute the command.
223222
224223If this method is invoked as its [ ` util.promisify() ` ] [ ] ed version, it returns
225224a Promise for an object with ` stdout ` and ` stderr ` properties. In case of an
@@ -316,9 +315,9 @@ async function getVersion() {
316315getVersion ();
317316```
318317
319- * Note * : If the ` shell ` option is enabled, do not pass unsanitized user input
320- to this function. Any input containing shell metacharacters may be used to
321- trigger arbitrary command execution.
318+ ** If the ` shell ` option is enabled, do not pass unsanitized user input to this
319+ function. Any input containing shell metacharacters may be used to trigger
320+ arbitrary command execution.**
322321
323322### child_process.fork(modulePath[ , args] [ , options ] )
324323<!-- YAML
@@ -376,11 +375,11 @@ Node.js processes launched with a custom `execPath` will communicate with the
376375parent process using the file descriptor (fd) identified using the
377376environment variable ` NODE_CHANNEL_FD ` on the child process.
378377
379- * Note * : Unlike the fork(2) POSIX system call, ` child_process.fork() ` does
380- not clone the current process.
378+ Unlike the fork(2) POSIX system call, ` child_process.fork() ` does not clone the
379+ current process.
381380
382- * Note * : The ` shell ` option available in [ ` child_process.spawn() ` ] [ ] is not
383- supported by ` child_process.fork() ` and will be ignored if set.
381+ The ` shell ` option available in [ ` child_process.spawn() ` ] [ ] is not supported by
382+ ` child_process.fork() ` and will be ignored if set.
384383
385384### child_process.spawn(command[ , args] [ , options ] )
386385<!-- YAML
@@ -426,9 +425,9 @@ The `child_process.spawn()` method spawns a new process using the given
426425` command ` , with command line arguments in ` args ` . If omitted, ` args ` defaults
427426to an empty array.
428427
429- * Note * : If the ` shell ` option is enabled, do not pass unsanitized user input to
430- this function. Any input containing shell metacharacters may be used to
431- trigger arbitrary command execution.
428+ ** If the ` shell ` option is enabled, do not pass unsanitized user input to this
429+ function. Any input containing shell metacharacters may be used to trigger
430+ arbitrary command execution.**
432431
433432A third argument may be used to specify additional options, with these defaults:
434433
@@ -517,12 +516,12 @@ subprocess.on('error', (err) => {
517516});
518517```
519518
520- * Note * : Certain platforms (macOS, Linux) will use the value of ` argv[0] ` for
521- the process title while others (Windows, SunOS) will use ` command ` .
519+ Certain platforms (macOS, Linux) will use the value of ` argv[0] ` for the process
520+ title while others (Windows, SunOS) will use ` command ` .
522521
523- * Note * : Node.js currently overwrites ` argv[0] ` with ` process.execPath ` on
524- startup, so ` process.argv[0] ` in a Node.js child process will not match the
525- ` argv0 ` parameter passed to ` spawn ` from the parent, retrieve it with the
522+ Node.js currently overwrites ` argv[0] ` with ` process.execPath ` on startup, so
523+ ` process.argv[0] ` in a Node.js child process will not match the ` argv0 `
524+ parameter passed to ` spawn ` from the parent, retrieve it with the
526525` process.argv0 ` property instead.
527526
528527#### options.detached
@@ -725,17 +724,17 @@ until the child process has fully closed. When a timeout has been encountered
725724and ` killSignal ` is sent, the method won't return until the process has
726725completely exited.
727726
728- * Note * : If the child process intercepts and handles the ` SIGTERM ` signal and
727+ If the child process intercepts and handles the ` SIGTERM ` signal and
729728does not exit, the parent process will still wait until the child process has
730729exited.
731730
732731If the process times out or has a non-zero exit code, this method *** will***
733732throw an [ ` Error ` ] [ ] that will include the full result of the underlying
734733[ ` child_process.spawnSync() ` ] [ ] .
735734
736- * Note * : If the ` shell ` option is enabled, do not pass unsanitized user input
737- to this function. Any input containing shell metacharacters may be used to
738- trigger arbitrary command execution.
735+ ** If the ` shell ` option is enabled, do not pass unsanitized user input to this
736+ function. Any input containing shell metacharacters may be used to trigger
737+ arbitrary command execution.**
739738
740739### child_process.execSync(command[ , options] )
741740<!-- YAML
@@ -789,9 +788,8 @@ If the process times out or has a non-zero exit code, this method ***will***
789788throw. The [ ` Error ` ] [ ] object will contain the entire result from
790789[ ` child_process.spawnSync() ` ] [ ]
791790
792- * Note* : Never pass unsanitized user input to this function. Any input
793- containing shell metacharacters may be used to trigger arbitrary command
794- execution.
791+ ** Never pass unsanitized user input to this function. Any input containing shell
792+ metacharacters may be used to trigger arbitrary command execution.**
795793
796794### child_process.spawnSync(command[ , args] [ , options ] )
797795<!-- YAML
@@ -857,9 +855,9 @@ completely exited. Note that if the process intercepts and handles the
857855` SIGTERM ` signal and doesn't exit, the parent process will wait until the child
858856process has exited.
859857
860- * Note * : If the ` shell ` option is enabled, do not pass unsanitized user input
861- to this function. Any input containing shell metacharacters may be used to
862- trigger arbitrary command execution.
858+ ** If the ` shell ` option is enabled, do not pass unsanitized user input to this
859+ function. Any input containing shell metacharacters may be used to trigger
860+ arbitrary command execution.**
863861
864862## Class: ChildProcess
865863<!-- YAML
@@ -907,9 +905,9 @@ The `'error'` event is emitted whenever:
9079052 . The process could not be killed, or
9089063 . Sending a message to the child process failed.
909907
910- * Note * : The ` 'exit' ` event may or may not fire after an error has occurred.
911- When listening to both the ` 'exit' ` and ` 'error' ` events, it is important
912- to guard against accidentally invoking handler functions multiple times.
908+ The ` 'exit' ` event may or may not fire after an error has occurred. When
909+ listening to both the ` 'exit' ` and ` 'error' ` events, it is important to guard
910+ against accidentally invoking handler functions multiple times.
913911
914912See also [ ` subprocess.kill() ` ] [ ] and [ ` subprocess.send() ` ] [ ] .
915913
@@ -948,7 +946,7 @@ added: v0.5.9
948946The ` 'message' ` event is triggered when a child process uses [ ` process.send() ` ] [ ]
949947to send messages.
950948
951- * Note * : The message goes through serialization and parsing. The resulting
949+ The message goes through serialization and parsing. The resulting
952950message might not be the same as what is originally sent.
953951
954952### subprocess.channel
@@ -1111,7 +1109,7 @@ be used to send messages to the child process. When the child process is a
11111109Node.js instance, these messages can be received via the
11121110[ ` process.on('message') ` ] [ ] event.
11131111
1114- * Note * : The message goes through serialization and parsing. The resulting
1112+ The message goes through serialization and parsing. The resulting
11151113message might not be the same as what is originally sent.
11161114
11171115For example, in the parent script:
0 commit comments