Skip to main content
Module

x/proc/mod3.ts>StderrHandler

A better way to work with processes in Deno.
Go to Latest
type alias StderrHandler
import { type StderrHandler } from "https://deno.land/x/proc@0.20.31/mod3.ts";

Optionally handle lines of stderr (passed as text lines), and also optionally return a value that is passed to your custom ErrorHandler. You are not allowed to throw an error from this function. If you wish to throw an error based on stderr data, the ErrorHandler function is where you do that.

definition: (it: AsyncIterable<Uint8Array>) => Promise<S>