UNPKG

@sophons/request

Version:

🚀 Probably the best Node.js HTTP request component, It also contains a rich stream processing

11 lines (10 loc) • 306 B
/// <reference types="node" /> import { Stream } from 'stream'; /** * Fast transform stream to buffer */ export declare const fastStreamToBuffer: (stream: Stream) => Promise<Buffer>; /** * Fast transform buffer to stream */ export declare const fastBufferToStream: (buffer: Buffer) => Promise<Stream>;