Type Alias: ExecResult
ExecResult =
object
Outcome of spawn / spawnSync: exit code, captured output, and line views.
Properties
Section titled “Properties”exitCode
Section titled “exitCode”exitCode:
number
stderr
Section titled “stderr”
readonlystderr:string
Captured stderr text. spawnSync reads the captured string;
spawn joins stderrLines. See trim for normalization.
stderrLines
Section titled “stderrLines”
readonlystderrLines: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.
stdout
Section titled “stdout”
readonlystdout:string
Captured stdout text. spawnSync reads the captured string;
spawn joins stdoutLines. See trim for normalization.
stdoutLines
Section titled “stdoutLines”
readonlystdoutLines: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.