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

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

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

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

Parameters

buffs: AsyncIterable<Uint8Array>

The iterable bytes.

Returns

AsyncIterableIterator<string>