Interface: ExecResult

Since

0.2.0

Hierarchy

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.

Properties

cmd

OptionalReadonlycmd: string

Inherited from

RawExecResult. cmd


killed

OptionalReadonlykilled: boolean

Inherited from

RawExecResult. killed


signal

OptionalReadonlysignal: string

Inherited from

RawExecResult. signal


code

OptionalReadonlycode: number

Inherited from

RawExecResult. code


stdout

Readonlystdout: string

Inherited from

RawExecResult. stdout


stderr

Readonlystderr: string

Inherited from

RawExecResult. stderr

Page options
close