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

x/proc/src/transformers.ts>textToLines

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

Transform text in "chunk" form into lines.

Wraps TextLineStream.

Parameters

optional
options: { allowCR?: boolean; }

Options.

Returns

(chunks: AsyncIterable<string>) => AsyncIterable<string>

A transformer.