Interface: ExecResultV0
Table of contents
Properties
cmd
β’ Optional Readonly cmd: string
killed
β’ Optional Readonly killed: boolean
signal
β’ Optional Readonly signal: string
code
β’ Optional Readonly code: number
stdout
β’ Readonly stdout: string
stderr
β’ Readonly stderr: string
Methods
lines
βΈ lines(): string[]
Split output lines.
Returns
string[]
The list of lines.
parseJsonLines
βΈ parseJsonLines(): any[]
Parse each output line as a JSON object.
Returns
any[]
The list of lines where each line is a JSON object.
parseJsonObject
βΈ parseJsonObject(): any
Parse a well-formed JSON output.
Returns
any
The JSON object.