@@ -38,7 +38,7 @@ the event loop until the spawned process either exits or is terminated.
38
38
39
39
For convenience, the ` child_process ` module provides a handful of synchronous
40
40
and asynchronous alternatives to [ ` child_process.spawn() ` ] [ ] and
41
- [ ` child_process.spawnSync() ` ] [ ] . * Note that each of these alternatives are
41
+ [ ` child_process.spawnSync() ` ] [ ] . * Note that each of these alternatives are
42
42
implemented on top of [ ` child_process.spawn() ` ] [ ] or [ ` child_process.spawnSync() ` ] [ ] .*
43
43
44
44
* [ ` child_process.exec() ` ] [ ] : spawns a shell and runs a command within that shell,
@@ -143,8 +143,8 @@ changes:
143
143
[ Shell Requirements] [ ] and [ Default Windows Shell] [ ] .
144
144
* ` timeout ` {number} ** Default:** ` 0 `
145
145
* ` maxBuffer ` {number} Largest amount of data in bytes allowed on stdout or
146
- stderr. ** Default:** ` 200* 1024 ` . If exceeded, the child process is terminated.
147
- See caveat at [ ` maxBuffer ` and Unicode] [ ] .
146
+ stderr. ** Default:** ` 200 * 1024 ` . If exceeded, the child process is
147
+ terminated. See caveat at [ ` maxBuffer ` and Unicode] [ ] .
148
148
* ` killSignal ` {string|integer} ** Default:** ` 'SIGTERM' `
149
149
* ` uid ` {number} Sets the user identity of the process (see setuid(2)).
150
150
* ` gid ` {number} Sets the group identity of the process (see setgid(2)).
@@ -187,7 +187,7 @@ exec('cat *.js bad_file | wc -l', (error, stdout, stderr) => {
187
187
```
188
188
189
189
If a ` callback ` function is provided, it is called with the arguments
190
- ` (error, stdout, stderr) ` . On success, ` error ` will be ` null ` . On error,
190
+ ` (error, stdout, stderr) ` . On success, ` error ` will be ` null ` . On error,
191
191
` error ` will be an instance of [ ` Error ` ] [ ] . The ` error.code ` property will be
192
192
the exit code of the child process while ` error.signal ` will be set to the
193
193
signal that terminated the process. Any exit code other than ` 0 ` is considered
@@ -257,8 +257,8 @@ changes:
257
257
* ` encoding ` {string} ** Default:** ` 'utf8' `
258
258
* ` timeout ` {number} ** Default:** ` 0 `
259
259
* ` maxBuffer ` {number} Largest amount of data in bytes allowed on stdout or
260
- stderr. ** Default:** ` 200* 1024 ` If exceeded, the child process is terminated.
261
- See caveat at [ ` maxBuffer ` and Unicode] [ ] .
260
+ stderr. ** Default:** ` 200 * 1024 ` If exceeded, the child process is
261
+ terminated. See caveat at [ ` maxBuffer ` and Unicode] [ ] .
262
262
* ` killSignal ` {string|integer} ** Default:** ` 'SIGTERM' `
263
263
* ` uid ` {number} Sets the user identity of the process (see setuid(2)).
264
264
* ` gid ` {number} Sets the group identity of the process (see setgid(2)).
@@ -536,7 +536,7 @@ disabled*.
536
536
On non-Windows platforms, if ` options.detached ` is set to ` true ` , the child
537
537
process will be made the leader of a new process group and session. Note that
538
538
child processes may continue running after the parent exits regardless of
539
- whether they are detached or not. See setsid(2) for more information.
539
+ whether they are detached or not. See setsid(2) for more information.
540
540
541
541
By default, the parent will wait for the detached child to exit. To prevent
542
542
the parent from waiting for a given ` subprocess ` , use the ` subprocess.unref() `
@@ -706,8 +706,8 @@ changes:
706
706
* ` killSignal ` {string|integer} The signal value to be used when the spawned
707
707
process will be killed. ** Default:** ` 'SIGTERM' `
708
708
* ` maxBuffer ` {number} Largest amount of data in bytes allowed on stdout or
709
- stderr. ** Default:** ` 200* 1024 ` If exceeded, the child process is terminated.
710
- See caveat at [ ` maxBuffer ` and Unicode] [ ] .
709
+ stderr. ** Default:** ` 200 * 1024 ` If exceeded, the child process is
710
+ terminated. See caveat at [ ` maxBuffer ` and Unicode] [ ] .
711
711
* ` encoding ` {string} The encoding used for all stdio inputs and outputs. ** Default:** ` 'buffer' `
712
712
* ` windowsHide ` {boolean} Hide the subprocess console window that would
713
713
normally be created on Windows systems. ** Default:** ` false ` .
@@ -767,8 +767,8 @@ changes:
767
767
* ` killSignal ` {string|integer} The signal value to be used when the spawned
768
768
process will be killed. ** Default:** ` 'SIGTERM' `
769
769
* ` maxBuffer ` {number} Largest amount of data in bytes allowed on stdout or
770
- stderr. ** Default:** ` 200* 1024 ` If exceeded, the child process is terminated.
771
- See caveat at [ ` maxBuffer ` and Unicode] [ ] .
770
+ stderr. ** Default:** ` 200 * 1024 ` If exceeded, the child process is
771
+ terminated. See caveat at [ ` maxBuffer ` and Unicode] [ ] .
772
772
* ` encoding ` {string} The encoding used for all stdio inputs and outputs.
773
773
** Default:** ` 'buffer' `
774
774
* ` windowsHide ` {boolean} Hide the subprocess console window that would
@@ -779,12 +779,12 @@ The `child_process.execSync()` method is generally identical to
779
779
[ ` child_process.exec() ` ] [ ] with the exception that the method will not return until
780
780
the child process has fully closed. When a timeout has been encountered and
781
781
` killSignal ` is sent, the method won't return until the process has completely
782
- exited. * Note that if the child process intercepts and handles the ` SIGTERM `
782
+ exited. * Note that if the child process intercepts and handles the ` SIGTERM `
783
783
signal and doesn't exit, the parent process will wait until the child
784
784
process has exited.*
785
785
786
786
If the process times out or has a non-zero exit code, this method *** will***
787
- throw. The [ ` Error ` ] [ ] object will contain the entire result from
787
+ throw. The [ ` Error ` ] [ ] object will contain the entire result from
788
788
[ ` child_process.spawnSync() ` ] [ ]
789
789
790
790
* Note* : Never pass unsanitized user input to this function. Any input
@@ -825,8 +825,8 @@ changes:
825
825
* ` killSignal ` {string|integer} The signal value to be used when the spawned
826
826
process will be killed. ** Default:** ` 'SIGTERM' `
827
827
* ` maxBuffer ` {number} Largest amount of data in bytes allowed on stdout or
828
- stderr. ** Default:** ` 200* 1024 ` If exceeded, the child process is terminated.
829
- See caveat at [ ` maxBuffer ` and Unicode] [ ] .
828
+ stderr. ** Default:** ` 200 * 1024 ` If exceeded, the child process is
829
+ terminated. See caveat at [ ` maxBuffer ` and Unicode] [ ] .
830
830
* ` encoding ` {string} The encoding used for all stdio inputs and outputs.
831
831
** Default:** ` 'buffer' `
832
832
* ` shell ` {boolean|string} If ` true ` , runs ` command ` inside of a shell. Uses
@@ -1169,7 +1169,7 @@ properties:
1169
1169
Defaults to ` false ` .
1170
1170
1171
1171
The optional ` callback ` is a function that is invoked after the message is
1172
- sent but before the child may have received it. The function is called with a
1172
+ sent but before the child may have received it. The function is called with a
1173
1173
single argument: ` null ` on success, or an [ ` Error ` ] [ ] object on failure.
1174
1174
1175
1175
If no ` callback ` function is provided and the message cannot be sent, an
0 commit comments