import { Process } from "https://deno.land/x/proc@0.20.9/mod3.ts";
A wrapper for Deno.ChildProcess
that converts streams to AsyncIterable<...>
,
corrects error handling, and adds other custom stuff.
Constructors
new
Process(process: Deno.ChildProcess,
options: ProcessStreamOptions<S>,
cmd: string | URL,
args: readonly string[],
Properties
private
_stdin: WritableIterable< | Uint8Array
| Uint8Array[]
| string
| string[]
private
stderrResult: Promise<S> | undefinedreadonly
stdin: WritableIterable< | Uint8Array
| Uint8Array[]
| string
| string[]
stdin
as a WritableIterable.
Methods
close(): Promise<void>
status()
writeToStdin(iter: AsyncIterable<>)
| Uint8Array
| Uint8Array[]
| string
| string[]
This is the "backdoor" way to write directly to the underlying process stdin
without the overhead of a WritableIterable. This replaces using this.stdin
entirely.