Skip to main content
Module

x/proc/mod3.ts>StderrHandler

A high-level way to run child processes that is easy, flexible, powerful, and prevents resource leaks.
Go to Latest
type alias StderrHandler
import { type StderrHandler } from "https://deno.land/x/proc@0.20.15/mod3.ts";

Optionally handle lines of stderr (passed as arrays of lines as available), and also optionally return a value that is passed to your custom ErrorHandler. This function may not throw an error. If you wish to throw an error based on stderr data, the ErrorHandler function is where you do that.

definition: (it: AsyncIterable<string[]>) => Promise<S>