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

x/proc/legacy/mod.ts>OutputHandler

A better way to work with processes in Deno.
Go to Latest
interface OutputHandler
Re-export
import { type OutputHandler } from "https://deno.land/x/proc@0.21.5/legacy/mod.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.