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

x/deno/cli/js/process.ts>Process

A modern runtime for JavaScript and TypeScript.
Go to Latest
class Process
import { Process } from "https://deno.land/x/deno@v0.28.0/cli/js/process.ts";

Constructors

new
Process(res: RunResponse)

Properties

readonly
pid: number
readonly
rid: number
readonly
optional
stderr: ReadCloser
readonly
optional
stdin: WriteCloser
readonly
optional
stdout: ReadCloser

Methods

close(): void
kill(signo: number): void
output(): Promise<Uint8Array>

Buffer the stdout and return it as Uint8Array after EOF. You must set stdout to "piped" when creating the process. This calls close() on stdout after its done.

status(): Promise<ProcessStatus>
stderrOutput(): Promise<Uint8Array>

Buffer the stderr and return it as Uint8Array after EOF. You must set stderr to "piped" when creating the process. This calls close() on stderr after its done.