UNPKG

@naturalcycles/nodejs-lib

Version:
10 lines (9 loc) 453 B
/// <reference types="node" /> import { TransformTyped } from '../stream.model'; /** * Input: stream (objectMode=false) of arbitrary string|Buffer chunks, like when read from fs * Output: stream (objectMode=false) or string|Buffer chunks split by `separator` (@default to `\n`) * * Useful to, for example, reading NDJSON files from fs */ export declare function transformSplit(separator?: string): TransformTyped<string | Buffer, string | Buffer>;