Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/deno/cli/js/lib.deno.ns.d.ts>Deno.Process

A modern runtime for JavaScript and TypeScript.
Go to Latest
class Deno.Process
import { Deno } from "https://deno.land/x/deno@v1.0.0/cli/js/lib.deno.ns.d.ts";
const { Process } = Deno;

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.