ProcessOutput import type {ProcessOutput} from '@fuzdev/gro/stdout.js'; The process's stdout or stderr.
is_terminal
Whether this stream is a terminal.
type boolean
write
Writes data, a string as UTF-8, resolving once it's accepted, so awaiting each write
paces a writer against the reader. Writes not awaited queue in memory, and exit drops
any not yet accepted, so await a write before exiting.
type (data: string | Uint8Array<ArrayBufferLike>): Promise<boolean>
data
string | Uint8Array<ArrayBufferLike>Promise<boolean>false when the reader has gone (EPIPE, a task piped to head), so the data
went nowhere, and every later write resolves false too
throws
TypeError- for data that's neither a well-formed string nor a `Uint8Array`StdioError- `io_error`, any other write failure, like a full disk