Interface: ExecResultV0

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.