import { ProcReadableStream } from "https://deno.land/x/proc@0.20.2/src/proc-readable-stream.ts";
Constructors
new
ProcReadableStream(source: ReadableStream<R>)Methods
cancel(reason?: unknown): Promise<void>
collect()
getReader(options: { mode: "byob"; }): ReadableStreamBYOBReader
getReader(options?: { mode?: undefined; }): ReadableStreamDefaultReader<R>
pipeThrough<T>(transform: { writable: WritableStream<R>; readable: ReadableStream<T>; }, options?: PipeOptions): ProcReadableStream<T>
pipeTo(dest: WritableStream<R>, options?: PipeOptions): Promise<void>
run(): ProcChildProcess
options: RunFnOptions,
cmd: string,
...args: string[],
Run a process.
Note that this is not type safe. This should only be called on a
ProcReadableStream<Uint8Array>
. Calling this for other types will
cause a runtime error.
run(cmd: string, ...args: string[]): ProcChildProcess
Run a process.
Note that this is not type safe. This should only be called on a
ProcReadableStream<Uint8Array>
. Calling this for other types will
cause a runtime error.
[Symbol.asyncIterator](options?: { preventCancel?: boolean; }): AsyncIterableIterator<R>