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

x/ayonli_jsext/lib.deno.d.ts>Deno.ChildProcess

A JavaScript extension package for building strong and modern applications.
Latest
class Deno.ChildProcess
implements AsyncDisposable
import { Deno } from "https://deno.land/x/ayonli_jsext@v0.9.72/lib.deno.d.ts";
const { ChildProcess } = Deno;

The interface for handling a child process returned from Deno.Command.spawn.

Properties

readonly
pid: number
readonly
status: Promise<CommandStatus>

Get the status of the child.

readonly
stderr: ReadableStream<Uint8Array>
readonly
stdin: WritableStream<Uint8Array>
readonly
stdout: ReadableStream<Uint8Array>

Methods

kill(signo?: Signal): void

Kills the process with given Deno.Signal.

Defaults to SIGTERM if no signal is provided.

output(): Promise<CommandOutput>

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

ref(): void

Ensure that the status of the child process prevents the Deno process from exiting.

unref(): void

Ensure that the status of the child process does not block the Deno process from exiting.

[Symbol.asyncDispose](): Promise<void>