Skip to main content
class Deno.Process

Properties

readonly
pid: number
readonly
rid: number
readonly
stderr: T["stderr"] extends "piped" ? Reader & Closer : (Reader & Closer) | null
readonly
stdin: T["stdin"] extends "piped" ? Writer & Closer : (Writer & Closer) | null
readonly
stdout: T["stdout"] extends "piped" ? Reader & Closer : (Reader & Closer) | null

Methods

close(): void
kill(signo: number): void

UNSTABLE: The signo argument may change to require the Deno.Signal enum.

Send a signal to process. This functionality currently only works on Linux and Mac OS.

output(): Promise<Uint8Array>

Buffer the stdout until EOF and return it as Uint8Array.

You must set stdout to "piped" when creating the process.

This calls close() on stdout after its done.

status(): Promise<ProcessStatus>

Resolves to the current status of the process.

stderrOutput(): Promise<Uint8Array>

Buffer the stderr until EOF and return it as Uint8Array.

You must set stderr to "piped" when creating the process.

This calls close() on stderr after its done.