@mikeyt23/node-cli-utils
    Preparing search index...

    Interface SimpleSpawnResult

    Spawn result for calls to simpleSpawnSync and simpleCmdSync.

    Contains the same properties as SpawnResult plus stdoutLines, which is stdout split into lines from stdout that weren't empty.

    interface SimpleSpawnResult {
        code: number;
        cwd?: string;
        error?: Error;
        stderr: string;
        stdout: string;
        stdoutLines: string[];
    }

    Hierarchy (View Summary)

    Index

    Properties

    code: number

    The exit code of the spawned process. Rather than allowing null, this will be set to 1 if the process exits with null, or 0 if user cancels with ctrl+c.

    cwd?: string

    The current working directory of the spawned process. Not changed by method, so just repeating your SpawnOptions.cwd back to you, but helpful for debugging.

    error?: Error

    Not an error from the child process stderr, but rather an error thrown when attempting to spawn the child process.

    stderr: string

    The stderr of the spawned process. Warning: this will be empty by default without changing SpawnOptions stdio (see spawnAsync).

    stdout: string

    The stdout of the spawned process. Warning: this will be empty by default without changing SpawnOptions stdio (see spawnAsync).

    stdoutLines: string[]