DuAEF.DuProcess

Processes tools

Methods

static isAppPackage(path) → {bool}

Checks if a given path leads to an Application package on Mac, i.e. it's a path ending with .app containing at least Contents/MacOS/.
Parameters:
Name Type Description
path string | Folder | File The path to the file or folder to check.
Returns:
bool - true if path is an application package.

static run(process, argsopt) → {string}

Runs a command with some arguments.
Parameters:
Name Type Attributes Default Description
process string | File The process or a path to the process.
args Array.<string> <optional>
[] The arguments to pass to the command.
Returns:
string - The output from the command.