Spawn Stderr
When using JSTime.spawn(), the child process inherits the stderr of the spawning process. If instead you’d prefer to read and handle stderr, set the stderr option to "pipe".
const proc = JSTime.spawn(["echo", "hello"], { stderr: "pipe",});proc.stderr; // => ReadableStreamTo read stderr until the child process exits, use the JSTime.readableStreamToText() convenience function.
const proc = JSTime.spawn(["echo", "hello"], { stderr: "pipe",});
const errors: string = await JSTime.readableStreamToText(proc.stderr);if (errors) { // handle errors}See Docs > API > Child processes for complete documentation.