Skip to content

Type Alias: SyncExecOptions

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

Options for spawnSync. Same shape as ExecOptions but without line-handler stdio.

optional check?: boolean

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

optional stderr?: SyncExecStdio

optional stdin?: ExecStdio | string

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

optional stdout?: SyncExecStdio

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.