core3-utils

@wixc3/node on Github

Home > @wixc3/node > spawnAsync

spawnAsync() function

Signature:

export declare function spawnAsync(command: string, args?: ReadonlyArray<string>, options?: ISpawnAsyncOptions): Promise<{
    exitCode: number;
    output: string;
}>;

Parameters

Parameter Type Description
command string
args ReadonlyArray<string> _(Optional)_
options [ISpawnAsyncOptions](/core3-utils/node.ispawnasyncoptions.html) _(Optional)_

Returns:

Promise<{ exitCode: number; output: string; }>