UNPKG

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