Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

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

A better way to work with processes in Deno.
Very Popular
Go to Latest
function bytesToByteLines
import { bytesToByteLines } from "https://deno.land/x/proc@0.21.4/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>