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

x/proc/mod.ts>StderrHandler

A better way to work with processes in Deno.
Latest
type alias StderrHandler
import { type StderrHandler } from "https://deno.land/x/proc@0.22.1/mod.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>