When dealing with child processes, all of the asynchronous methods will return an instance of ChildProcess
, while all the synchronous versions will return the output of whatever was run. Like other synchronous operations in Node.js, if an error occurs, it will throw.