Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/proc/legacy/runners/handlers/stderr-to-stdout-string-asynciterable-handlers.ts>StderrToStdoutStringAsyncIterableOutputHandler

A high-level way to run child processes that is easy, flexible, powerful, and prevents resource leaks.
Go to Latest
class StderrToStdoutStringAsyncIterableOutputHandler
implements OutputHandler<AsyncIterable<string>>
import { StderrToStdoutStringAsyncIterableOutputHandler } from "https://deno.land/x/proc@0.20.5/legacy/runners/handlers/stderr-to-stdout-string-asynciterable-handlers.ts";

Redirect stderr into stdout. This handler is always unbuffered so that the lines come out as close to real-time as possible.

Constructors

new
StderrToStdoutStringAsyncIterableOutputHandler(errorHandler: ErrorHandler)

Methods

protected
handleStderr(stderr: MultiCloseReader): AsyncIterableIterator<string>
protected
process(
input: { stdin: MultiCloseWriter; handlerResult: Promise<null | Error>; },
): AsyncIterableIterator<string>
processOutput(
input: { stdin: MultiCloseWriter; handlerResult: Promise<null | Error>; },
): AsyncIterable<string>