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

x/proc/src/api2/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.9/src/api2/proc-readable-stream.ts";

Constructors

new
ProcChildProcess(child: Deno.ChildProcess)

Properties

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

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: Cmd): ProcChildProcess

Run a process.

Run a process.