Ende.SubprocessReadableStream

interface

interface Ende.SubprocessReadableStream extends ReadableStream<Uint8Array<ArrayBuffer>>

The interface for stdout and stderr streams for child process returned from Ende.Command.spawn.

Methods

arrayBuffer

arrayBuffer(): Promise<ArrayBuffer>

Reads the stream to completion. It returns a promise that resolves with an ArrayBuffer.

bytes

bytes(): Promise<Uint8Array<ArrayBuffer>>

Reads the stream to completion. It returns a promise that resolves with a Uint8Array.

json

json(): Promise<any>

Reads the stream to completion. It returns a promise that resolves with the result of parsing the body text as JSON.

text

text(): Promise<string>

Reads the stream to completion. It returns a promise that resolves with a USVString (text).