Skip to main content
Module

x/proc/mod.ts>stderrLinesToErrorMessage

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

Write stderr lines to the error message, if the process fails; otherwise, stderr is suppressed.

Parameters

optional
tail = [UNSUPPORTED]

The number of lines at the end of stderr to keep.

Returns

(bytes: AsyncIterable<Uint8Array>) => Promise<string[]>