interface ProcessOptions

Options passed to a process.

Type Parameters

Properties

readonly
optional
cwd: string

Current working directory.

readonly
optional
env: Record<string, string>

Environment variables.

Optionally process all lines of stderr.

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.

Usage

import { type ProcessOptions } from ".";