@naturalcycles/nodejs-lib
Version:
Standard library for Node.js
10 lines (9 loc) • 453 B
TypeScript
/// <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>;