* @param {AsyncIterable|ReadableStream|Readable} stream * @returns {Promise }
(stream)
| 48 | * @returns {Promise<Buffer>} |
| 49 | */ |
| 50 | async function buffer(stream) { |
| 51 | return Buffer.from(await arrayBuffer(stream)); |
| 52 | } |
| 53 | |
| 54 | /** |
| 55 | * @param {AsyncIterable|ReadableStream|Readable} stream |
nothing calls this directly
no test coverage detected