Skip to main content
Module

x/proc/mod3.ts>ProcessOptions

A better way to work with processes in Deno.
Go to Latest
interface ProcessOptions
Re-export
import { type ProcessOptions } from "https://deno.land/x/proc@0.20.33/mod3.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.