Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/proc/src/proc-readable-stream.ts>ProcChildProcess

A high-level way to run child processes that is easy, flexible, powerful, and prevents resource leaks.
Go to Latest
class ProcChildProcess
implements [Deno.ChildProcess]
import { ProcChildProcess } from "https://deno.land/x/proc@0.20.2/src/proc-readable-stream.ts";

Constructors

new
ProcChildProcess(child: Deno.ChildProcess)

Properties

private
_stderr: ProcReadableStream<Uint8Array> | null
private
_stdout: ProcReadableStream<Uint8Array> | null
protected
readonly
chainableOutput: ProcReadableStream<Uint8Array>
readonly
pid
readonly
status
readonly
stderr
readonly
stdin
readonly
stdout

Methods

The stdout data as a string.

The bytes from stdout.

Collect stdout as lines of text.

kill(signo?: Deno.Signal)
pipeThrough<T>(transform: { writable: WritableStream<Uint8Array>; readable: ReadableStream<T>; }, options?: PipeOptions): ProcReadableStream<T>
ref()
run(
options: RunFnOptions,
cmd: string,
...args: string[],
): ProcChildProcess

Run a process.

run(cmd: string, ...args: string[]): ProcChildProcess

Run a process.