Skip to main content
Module

x/proc/mod3.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/mod3.ts";

Transform text in "chunk" form into lines.

Wraps TextLineStream.

Parameters

optional
options: { allowCR?: boolean; }

Options.

Returns

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

A transformer.