Skip to main content
Module

x/proc/mod1.ts>OutputHandler

A high-level way to run child processes that is easy, flexible, powerful, and prevents resource leaks.
Go to Latest
interface OutputHandler
Re-export
import { type OutputHandler } from "https://deno.land/x/proc@0.20.23/mod1.ts";

The interface of an output handler.

Properties

processOutput: (
input: { stdin: MultiCloseWriter; handlerResult: Promise<null | Error>; },
) => B | Promise<B>

Handle the output (stdout, stderr, and exit status) of a process.

stdin is included so that it can be closed. It must not be read from the output handler.