Pstdio
Bun

property

Subprocess.stdio

readonly stdio: [null, null, null, ...null | number[]]

Access extra file descriptors passed to the stdio option in the options object.

Entries beyond index 2 are number for "pipe" slots and, on POSIX, for slots where a raw file descriptor was supplied (the same fd is returned; it remains owned by the caller and is never closed by the subprocess). Other slots — including raw fds on Windows — are null.