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

x/levo/lib/lib.deno_runtime.d.ts>Deno.Process

Server side rendering with The Elm Architecture in Deno
Latest
class Deno.Process
import { Deno } from "https://deno.land/x/levo@v0.0.27/lib/lib.deno_runtime.d.ts";
const { Process } = Deno;

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.