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

x/proc/legacy/runners/utility.ts

A high-level way to run child processes that is easy, flexible, powerful, and prevents resource leaks.
Go to Latest
import * as proc from "https://deno.land/x/proc@0.20.17/legacy/runners/utility.ts";

Functions

Convert an AsyncIterable<Uint8Array> into an AsyncIterable<Uint8Array> split on lf and suppressing trailing cr.

Convert an AsyncIterable<Uint8Array> into an AsyncIterable<string> of lines.

Concatenate arrays together, returning a single array containing the result.

Efficiently pump data from a reader to a writer.

Pump data from a reader to a writer, unbuffered.

Efficiently transform a Reader to an AsyncIterableIterator<Uint8Array>.

Transform a Reader to an AsyncIterableIterator<Uint8Array>, unbuffered. This will read bytes as soon as they are available.

Sleep for a while.