This module contains a variety of generic promise wrapped node.child_process.spawn commands

Source:

Members

(inner) spawn

this is not a constant for unit testing purposes

Source:

Methods

(inner) commandStr(command, args) → {string}

Parameters:
Name Type Description
command string
args string
Source:
Returns:
Type
string

(inner) failError(command, args, code, stderropt) → {Error}

Parameters:
Name Type Attributes Description
command string
args Array.<string>
code number
stderr string <optional>
Source:
Returns:
Type
Error

(inner) failString(command, args, code, stderropt) → {string}

Parameters:
Name Type Attributes Description
command string
args string
code string | number
stderr string <optional>
Source:
Returns:
Type
string

(inner) inherit(command, argsopt, optsopt) → {Promise}

Stdio inherits, meaning that the given command takes over stdio

Parameters:
Name Type Attributes Description
command string
args Array.<string> <optional>
opts Object <optional>
Source:
Returns:
Type
Promise

(inner) output(command, argsopt, optsopt) → {Promise.<string>}

Resolves stdout, rejects with stderr, also streams

Parameters:
Name Type Attributes Description
command string
args Array.<string> <optional>
opts Object <optional>
Source:
Returns:
Type
Promise.<string>

(inner) quiet(command, argsopt, optsopt) → {Promise}

Does not resolve stdout, but streams, and resolves stderr

Parameters:
Name Type Attributes Description
command string
args Array.<string> <optional>
opts Object <optional>
Source:
Returns:
Type
Promise

(inner) stdin(stdin, command, argsopt, optsopt) → {Promise.<string>}

like output, but puts stdin in as stdin

Parameters:
Name Type Attributes Description
stdin string
command string
args Array.<string> <optional>
opts Object <optional>
Source:
Returns:
Type
Promise.<string>

(inner) stream(command, argsopt, optsopt) → {Promise}

Only streams stdout/stderr, no output on resolve/reject

Parameters:
Name Type Attributes Description
command string
args Array.<string> <optional>
opts Object <optional>
Source:
Returns:
Type
Promise

(inner) successString(command, args, code) → {string}

Parameters:
Name Type Description
command string
args string
code string | number
Source:
Returns:
Type
string