spawn() function
export declare function spawn(command: string, args?: readonly string[], options?: SpawnOptions): Promise<SpawnResult>;
Parameters
Parameter | Type | Description |
---|---|---|
command | string | |
args | readonly string[] | (Optional) |
options | SpawnOptions | (Optional) |
Promise<SpawnResult>
Exceptions
SpawnError Thrown if the process terminates with non-zero exit code.