Interface ExecaSyncReturnValue<StdoutErrorType>

interface ExecaSyncReturnValue<StdoutErrorType> {
    command: string;
    exitCode: number;
    failed: boolean;
    killed: boolean;
    signal?: string;
    signalDescription?: string;
    stderr: StdoutErrorType;
    stdout: StdoutErrorType;
    timedOut: boolean;
}

Type Parameters

  • StdoutErrorType = string

Hierarchy (view full)

Properties

command: string

The file and arguments that were run.

exitCode: number

The numeric exit code of the process that was run.

failed: boolean

Whether the process failed to run.

killed: boolean

Whether the process was killed.

signal?: string

The name of the signal that was used to terminate the process. For example, SIGFPE.

If a signal terminated the process, this property is defined and included in the error message. Otherwise it is undefined.

signalDescription?: string

A human-friendly description of the signal that was used to terminate the process. For example, Floating point arithmetic error.

If a signal terminated the process, this property is defined and included in the error message. Otherwise it is undefined. It is also undefined when the signal is very uncommon which should seldomly happen.

The output of the process on stderr.

The output of the process on stdout.

timedOut: boolean

Whether the process timed out.