Skip to main content

interface Deno.SubprocessReadableStream

extends ReadableStream<Uint8Array<ArrayBuffer>>

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

Methods #

#arrayBuffer(): Promise<ArrayBuffer>

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

#bytes(): Promise<Uint8Array<ArrayBuffer>>

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

#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(): Promise<string>

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

Did you find what you needed?

Privacy policy