Skip to content

Type Alias: ExecOptions

ExecOptions = Omit<SpawnOptions, "stdio"> & object

Options for spawn. Extends SpawnOptions except stdio, which is driven by stdin / stdout / stderr.

optional check?: boolean

Throw when the process exits with a non-zero code.

optional stderr?: StdioOption

optional stdin?: ExecStdio | string

"inherit" by default; "pipe" / "ignore" select modes, any other string is input.

optional stdout?: StdioOption

optional trim?: boolean

Omitted — adaptive trim (spawnSync drops one spawn trailing newline, spawn does not); true — strip all leading/trailing whitespace; false — leave captured output unchanged.