Skip to main content
Module

x/proc/mod3.ts>toChunkedLines

A high-level way to run child processes that is easy, flexible, powerful, and prevents resource leaks.
Go to Latest
function toChunkedLines
Re-export
import { toChunkedLines } from "https://deno.land/x/proc@0.20.12/mod3.ts";

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

For larger data, this keeps the data being passed at reasonable sizes and avoids the "small string" problem. Consider using this instead of toLines

Parameters

buffs: AsyncIterable<Uint8Array>

The iterable bytes.

Returns

AsyncIterable<string[]>