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

x/proc/legacy/runners/utility.ts

A better way to work with processes in Deno.
Go to Latest
import * as proc from "https://deno.land/x/proc@0.21.9/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.