UNPKG

@foal/core

Version:

Full-featured Node.js framework, with no complexity

9 lines (8 loc) 273 B
/** * Converts a stream of buffers into a buffer. * * @export * @param {NodeJS.ReadableStream} stream - A readable stream. * @returns {Promise<Buffer>} The concatenated buffer */ export declare function streamToBuffer(stream: NodeJS.ReadableStream): Promise<Buffer>;