Hierarchy

  • spawner

Constructors

Properties

Methods

Constructors

Properties

spawn: ((command, args?, options?) => Bluebird<string>) = promiseSpawn

Type declaration

    • (command, args?, options?): Bluebird<string>
    • spawn promise

      Parameters

      Returns Bluebird<string>

Methods

  • promises spawn

    Example

    spawner.promise({}, 'git', 'log', '-n', '1').then(console.log);
    spawner.promise({stdio:'pipe'}, 'git', 'submodule', 'status').then(console.log);

    Parameters

    • options: SpawnOptions = null
    • cmd: string
    • Rest ...args: string[]

    Returns Promise<{
        code: number;
        stderr: string[] | Readable;
        stdout: string[] | Readable;
    }>