You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a simpler syntax that works for most use cases. The only time this does not work is when the child process is used outside of the pipe, e.g. when childProcess.kill() is used or when piping multiple processes to the same process. But those are not the normal use case.
For everyone else, avoiding the double ((...)) parenthesis and repetition of execa() is more straightforward. It is also easy to remember since the arguments are identical to the execa() call.
The text was updated successfully, but these errors were encountered:
Instead of passing a child process to
.pipe()
:A template string can be passed to
pipe
as a shortcut when using$
:It would be nice to have that kind of shortcut when not using
$
as well, like:This is a simpler syntax that works for most use cases. The only time this does not work is when the child process is used outside of the pipe, e.g. when
childProcess.kill()
is used or when piping multiple processes to the same process. But those are not the normal use case.For everyone else, avoiding the double
((...))
parenthesis and repetition ofexeca()
is more straightforward. It is also easy to remember since the arguments are identical to theexeca()
call.The text was updated successfully, but these errors were encountered: