UNPKG

streams

Version:

A lazy streams library for functional composition in JavaScript.

8 lines (7 loc) 314 B
import "../operators/async/split"; import { Readable } from "node:stream"; export type LinesOptions = { encoding?: BufferEncoding; separator?: string | RegExp; }; export declare function readableLines(readable: Readable, { encoding, separator }?: LinesOptions): AsyncGenerator<string, undefined, unknown>;