Skip to main content
class Deno.Process

Properties

readonly
pid: number
readonly
rid: number
readonly
optional
stderr: Reader & Closer
readonly
optional
stdin: Writer & Closer
readonly
optional
stdout: Reader & Closer

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.