sindresorhus / get-stream

Get a stream as a string, Buffer, ArrayBuffer or array
MIT License
341 stars 33 forks source link

Add support for `TypedArray` stream chunks #78

Closed ehmicky closed 1 year ago

ehmicky commented 1 year ago

This PR starts implementing support for web streams (ReadableStream). This PR allows stream chunks to be TypedArrays, in addition to the already supported string and Node.js Buffer.

After this PR will follow 2 more PRs for DataView and ArrayBuffer.