doc: clarify stream direction in options.stdio note · nodejs/node@f18be21 · GitHub
Skip to content

Commit f18be21

Browse files
zeexzeexaduh95
authored andcommitted
doc: clarify stream direction in options.stdio note
The stdio array note describes the stream passed for stdin as readable and stdout/stderr as writable, which is the reverse of the subprocess.stdin/subprocess.stdout streams created by 'pipe'. Readers keep conflating the two perspectives (see the linked issue and the self-closed PR #62175), so spell out the data flow and the contrast explicitly. Fixes: #56623 Signed-off-by: Avocado <ujubongbong@gmail.com> PR-URL: #65236 Fixes: #56623 Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent f07c6ac commit f18be21

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎doc/api/child_process.md‎

Lines changed: 6 additions & 1 deletion

0 commit comments

Comments
 (0)