Spawn a process with arguments and throw an error if the process fails.
Parameters are same as child_process.spawnSync
(see Node.js docs).
Use this method if you want the safe argument parsing of spawnSync
combined with the smart output handling of execSync
.
Contents of stdout as buffer or string
Get some basic information about the system
Is a Graphical User Interface available in the environment in which the current command is running?
Process utility to wrap callback process routines into promises Turn nextTick into a promise to prevent nesting
called before promise is resolved
arguments passed to the callback
Open a file or URL in the default application associated with its file extension or URL protocol. This method is only supported in graphical environments.
File path or Internet URL to open
Open a file in the best editor that can be found in the current
environment. In a graphical environment, the default application
associated with its file extension will be launched. In a command-line
environment, the file will be opened in vi, or the editor in the
the {envVariablePrefix}_EDITOR
environment variable if specified.
File path to edit
Chosen editor, can be a path or a valid environment variable name
Boolean where true == synchronous and false == asynchronous
Generated using TypeDoc
A collection of utilities related to the running process.