execute a command and return its result
differences from node's child_process.exec():
child_process.exec()
options.stdio
'inherit'
options.quiet
true
options.throwOnError
command to execute (first element is the command itself, the rest are arguments to it)
Optional
execute a command and return its result
differences from node's
child_process.exec()
:options.stdio
is set to'inherit'
, the command will be printed to the console (unlessoptions.quiet
is set totrue
)options.throwOnError
is set totrue