UNPKG

462 BTypeScriptView Raw
1/// <reference types="node" />
2import { TransformTyped } from '../stream.model';
3/**
4 * Transforms objectMode=false Buffers/strings into objectMode=true strings.
5 *
6 * Useful in this _pipeline:
7 * fs.createReadStream(inputPath),
8 * createUnzip(), // binary
9 * transformSplit(), // string chunks, but objectMode==false
10 * transformToString(), // string chunks, but objectMode==true
11 */
12export declare function transformToString(): TransformTyped<Buffer, string>;