Skip to main content
class Deno.Child
Unstable

Type Parameters

T extends SpawnOptions

Properties

readonly
pid: number
readonly
status: Promise<ChildStatus>

Get the status of the child.

readonly
stderr: T["stderr"] extends "inherit" | "null" ? null : ReadableStream<Uint8Array>
readonly
stdin: T["stdin"] extends "piped" ? WritableStream<Uint8Array> : null
readonly
stdout: T["stdout"] extends "inherit" | "null" ? null : ReadableStream<Uint8Array>

Methods

kill(signo: Signal): void

Kills the process with given Signal.

output(): Promise<SpawnOutput<T>>

Waits for the child to exit completely, returning all its output and status.