UNPKG

stream-chain

Version:

Chain functions as transform streams.

17 lines (12 loc) 456 B
/// <reference types="node" /> import {none} from '../defs'; export = fixUtf8Stream; /** * Converts buffers to UTF-8 strings and outputs them on the correct character boundaries. */ type FixOutput = (chunk: string | Buffer | typeof none) => string; /** * Creates a function that converts buffers to UTF-8 strings and outputs them on the correct character boundaries. * @returns a converter function */ declare function fixUtf8Stream(): FixOutput;