Skip to content

Commit 627c0cb

Browse files
skovhusMyles Borins
authored and
Myles Borins
committed
doc: child_process .stdio accepts a String type
Document that `execFileSync`, `execSync` and `spawnSync` also support `stdio` as an Array. PR-URL: #9637 Fixes: #9636 Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Sam Roberts <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Roman Reiss <[email protected]>
1 parent 9cb236f commit 627c0cb

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
@@ -575,7 +575,7 @@ added: v0.11.12
575575
* `input` {String|Buffer} The value which will be passed as stdin to the
576576
spawned process
577577
- supplying this value will override `stdio[0]`
578-
* `stdio` {Array} Child's stdio configuration. (Default: `'pipe'`)
578+
* `stdio` {String | Array} Child's stdio configuration. (Default: `'pipe'`)
579579
- `stderr` by default will be output to the parent process' stderr unless
580580
`stdio` is specified
581581
* `env` {Object} Environment key-value pairs
@@ -613,7 +613,7 @@ added: v0.11.12
613613
* `input` {String|Buffer} The value which will be passed as stdin to the
614614
spawned process
615615
- supplying this value will override `stdio[0]`
616-
* `stdio` {Array} Child's stdio configuration. (Default: `'pipe'`)
616+
* `stdio` {String | Array} Child's stdio configuration. (Default: `'pipe'`)
617617
- `stderr` by default will be output to the parent process' stderr unless
618618
`stdio` is specified
619619
* `env` {Object} Environment key-value pairs
@@ -657,7 +657,7 @@ added: v0.11.12
657657
* `input` {String|Buffer} The value which will be passed as stdin to the
658658
spawned process
659659
- supplying this value will override `stdio[0]`
660-
* `stdio` {Array} Child's stdio configuration.
660+
* `stdio` {String | Array} Child's stdio configuration.
661661
* `env` {Object} Environment key-value pairs
662662
* `uid` {Number} Sets the user identity of the process. (See setuid(2).)
663663
* `gid` {Number} Sets the group identity of the process. (See setgid(2).)

0 commit comments

Comments
 (0)