Skip to content

Commit 524ebfb

Browse files
skovhusMyles Borins
authored and
Myles Borins
committed
doc: child_process .stdio accepts a String type
Document that `execFileSync`, `execSync` and `spawnSync` also supports `stdio` as an Array. PR-URL: #9701 Fixes: #9636 Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]> Reviewed-By: Prince John Wesley <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent 748e424 commit 524ebfb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/api/child_process.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ added: v0.11.12
551551
* `cwd` {String} Current working directory of the child process
552552
* `input` {String|Buffer} The value which will be passed as stdin to the spawned process
553553
- supplying this value will override `stdio[0]`
554-
* `stdio` {Array} Child's stdio configuration. (Default: 'pipe')
554+
* `stdio` {String|Array} Child's stdio configuration. (Default: 'pipe')
555555
- `stderr` by default will be output to the parent process' stderr unless
556556
`stdio` is specified
557557
* `env` {Object} Environment key-value pairs
@@ -586,7 +586,7 @@ added: v0.11.12
586586
* `cwd` {String} Current working directory of the child process
587587
* `input` {String|Buffer} The value which will be passed as stdin to the spawned process
588588
- supplying this value will override `stdio[0]`
589-
* `stdio` {Array} Child's stdio configuration. (Default: 'pipe')
589+
* `stdio` {String|Array} Child's stdio configuration. (Default: 'pipe')
590590
- `stderr` by default will be output to the parent process' stderr unless
591591
`stdio` is specified
592592
* `env` {Object} Environment key-value pairs
@@ -626,7 +626,7 @@ added: v0.11.12
626626
* `cwd` {String} Current working directory of the child process
627627
* `input` {String|Buffer} The value which will be passed as stdin to the spawned process
628628
- supplying this value will override `stdio[0]`
629-
* `stdio` {Array} Child's stdio configuration.
629+
* `stdio` {String|Array} Child's stdio configuration.
630630
* `env` {Object} Environment key-value pairs
631631
* `uid` {Number} Sets the user identity of the process. (See setuid(2).)
632632
* `gid` {Number} Sets the group identity of the process. (See setgid(2).)

0 commit comments

Comments
 (0)