@@ -38,7 +38,7 @@ the event loop until the spawned process either exits or is terminated.
3838
3939For convenience, the ` child_process ` module provides a handful of synchronous
4040and 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
4242implemented on top of [ ` child_process.spawn() ` ] [ ] or [ ` child_process.spawnSync() ` ] [ ] .*
4343
4444 * [ ` child_process.exec() ` ] [ ] : spawns a shell and runs a command within that shell,
@@ -140,7 +140,8 @@ added: v0.1.90
140140 command line parsing should be compatible with ` cmd.exe ` .
141141 * ` timeout ` {number} ** Default:** ` 0 `
142142 * [ ` maxBuffer ` ] [ ] {number} Largest amount of data (in bytes) allowed on
143- stdout or stderr - if exceeded child process is killed. ** Default:** ` 200*1024 `
143+ stdout or stderr - if exceeded child process is killed.
144+ ** Default:** ` 200 * 1024 ` .
144145 * ` killSignal ` {string|integer} ** Default:** ` 'SIGTERM' `
145146 * ` uid ` {number} Sets the user identity of the process (see setuid(2)).
146147 * ` gid ` {number} Sets the group identity of the process (see setgid(2)).
@@ -170,7 +171,7 @@ exec('cat *.js bad_file | wc -l', (error, stdout, stderr) => {
170171```
171172
172173If a ` callback ` function is provided, it is called with the arguments
173- ` (error, stdout, stderr) ` . On success, ` error ` will be ` null ` . On error,
174+ ` (error, stdout, stderr) ` . On success, ` error ` will be ` null ` . On error,
174175` error ` will be an instance of [ ` Error ` ] [ ] . The ` error.code ` property will be
175176the exit code of the child process while ` error.signal ` will be set to the
176177signal that terminated the process. Any exit code other than ` 0 ` is considered
@@ -218,7 +219,7 @@ added: v0.1.91
218219 * ` timeout ` {number} ** Default:** ` 0 `
219220 * [ ` maxBuffer ` ] [ ] {number} Largest amount of data (in bytes) allowed on
220221 stdout or stderr - if exceeded child process is killed.
221- ** Default:** : ` 200* 1024 `
222+ ** Default:** ` 200 * 1024 ` .
222223 * ` killSignal ` {string|integer} ** Default:** ` 'SIGTERM' `
223224 * ` uid ` {number} Sets the user identity of the process (see setuid(2)).
224225 * ` gid ` {number} Sets the group identity of the process (see setgid(2)).
@@ -446,7 +447,7 @@ disabled*.
446447On non-Windows platforms, if ` options.detached ` is set to ` true ` , the child
447448process will be made the leader of a new process group and session. Note that
448449child processes may continue running after the parent exits regardless of
449- whether they are detached or not. See setsid(2) for more information.
450+ whether they are detached or not. See setsid(2) for more information.
450451
451452By default, the parent will wait for the detached child to exit. To prevent
452453the parent from waiting for a given ` subprocess ` , use the ` subprocess.unref() `
@@ -656,12 +657,12 @@ The `child_process.execSync()` method is generally identical to
656657[ ` child_process.exec() ` ] [ ] with the exception that the method will not return until
657658the child process has fully closed. When a timeout has been encountered and
658659` killSignal ` is sent, the method won't return until the process has completely
659- exited. * Note that if the child process intercepts and handles the ` SIGTERM `
660+ exited. * Note that if the child process intercepts and handles the ` SIGTERM `
660661signal and doesn't exit, the parent process will wait until the child
661662process has exited.*
662663
663664If the process times out, or has a non-zero exit code, this method *** will***
664- throw. The [ ` Error ` ] [ ] object will contain the entire result from
665+ throw. The [ ` Error ` ] [ ] object will contain the entire result from
665666[ ` child_process.spawnSync() ` ] [ ]
666667
667668** Note: Never pass unsanitised user input to this function. Any input
@@ -997,7 +998,7 @@ properties:
997998 Defaults to ` false ` .
998999
9991000The optional ` callback ` is a function that is invoked after the message is
1000- sent but before the child may have received it. The function is called with a
1001+ sent but before the child may have received it. The function is called with a
10011002single argument: ` null ` on success, or an [ ` Error ` ] [ ] object on failure.
10021003
10031004If no ` callback ` function is provided and the message cannot be sent, an
0 commit comments