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

x/proc/mod.ts>ProcessOptions

A better way to work with processes in Deno.
Latest
interface ProcessOptions
Re-export
import { type ProcessOptions } from "https://deno.land/x/proc@0.22.1/mod.ts";

Options passed to a process.

Properties

readonly
optional
cwd: string

Current working directory.

readonly
optional
env: Record<string, string>

Environment variables.

optional
fnStderr: StderrHandler<S>

Optionally process all lines of stderr.

optional
fnError: ErrorHandler<S>

Optionally override error handling.

optional
buffer: boolean

Turn on input buffering.

Buffering input can improve performance in some cases, but it can also change behavior in subtle ways - in particular if you are expecting a process to respond immediately to written input on an open stream. To prevent confusion, buffering is turned off by default.