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

x/proc/tools/deps/proc.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.21.8/tools/deps/proc.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: Enumerable<Uint8Array>) => Promise<S>