Type Alias: SyncExecOptions
SyncExecOptions =
Omit<SpawnOptions,"stdio"> &object
Options for spawnSync. Same shape as ExecOptions but without line-handler stdio.
Type Declaration
Section titled “Type Declaration”check?
Section titled “check?”
optionalcheck?:boolean
Throw when the process exits with a non-zero code.
stderr?
Section titled “stderr?”
optionalstderr?:SyncExecStdio
stdin?
Section titled “stdin?”
optionalstdin?:ExecStdio|string
"inherit" by default; "pipe" / "ignore" select modes, any other string is input.
stdout?
Section titled “stdout?”
optionalstdout?:SyncExecStdio
optionaltrim?:boolean
Omitted — adaptive trim (spawnSync drops one spawn trailing newline,
spawn does not); true — strip all leading/trailing whitespace;
false — leave captured output unchanged.