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

x/proc/src/process.ts>ProcessOptions

A high-level way to run child processes that is easy, flexible, powerful, and prevents resource leaks.
Go to Latest
interface ProcessOptions
import { type ProcessOptions } from "https://deno.land/x/proc@0.20.22/src/process.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.