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

x/proc/legacy/runners/utility.ts>bytesToByteLines

A better way to work with processes in Deno.
Go to Latest
function bytesToByteLines
import { bytesToByteLines } from "https://deno.land/x/proc@0.20.33/legacy/runners/utility.ts";

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

Parameters

buffs: AsyncIterable<Uint8Array>

The iterable bytes.

Returns

AsyncIterableIterator<Uint8Array>