Skip to main content
Module

x/deno/js/deno.ts>Process

A modern runtime for JavaScript and TypeScript.
Go to Latest
class Process
import { Process } from "https://deno.land/x/deno@v0.17.0/js/deno.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.