sync-exec
sync-exec copied to clipboard
match child_process.execSync output
The object coming out of child_process.execSync has the following properties:
pid Number Pid of the child process
output Array Array of results from stdio output
stdout Buffer|String The contents of output[1]
stderr Buffer|String The contents of output[2]
status Number The exit code of the child process
signal String The signal used to kill the child process
error Error The error object if the child process failed or timed out
While sync-exec appears to only have stdout, stderr and status.
Perhaps would be easy to add these to reach parity.