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

    Interface SpawnResult

    Options for the spawnAsync wrapper function for NodeJS spawn.

    interface SpawnResult {
        code: number;
        cwd?: string;
        error?: Error;
        stderr: string;
        stdout: 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).