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.