MCPcopy Create free account
hub / github.com/sindresorhus/execa / waitForSubprocessStdout

Function waitForSubprocessStdout

lib/convert/shared.js:28–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26};
27
28export const waitForSubprocessStdout = async subprocessStdout => {
29 await finished(subprocessStdout, {cleanup: true, readable: true, writable: false});
30};
31
32// When `readable` or `writable` aborts/errors, awaits the subprocess, for the reason mentioned above
33export const waitForSubprocess = async (subprocess, error) => {

Callers 2

onStdoutFinishedFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected