Skip to content

Type Alias: ExecResult

ExecResult = object

Outcome of spawn / spawnSync: exit code, captured output, and line views.

exitCode: number


readonly stderr: string

Captured stderr text. spawnSync reads the captured string; spawn joins stderrLines. See trim for normalization.


readonly stderrLines: string[]

Captured stderr lines. For spawn these are built while the process runs; for spawnSync they are split from the captured string on first read.


readonly stdout: string

Captured stdout text. spawnSync reads the captured string; spawn joins stdoutLines. See trim for normalization.


readonly stdoutLines: string[]

Captured stdout lines. For spawn these are built while the process runs; for spawnSync they are split from the captured string on first read.