sindresorhus / into-stream

Convert a string/promise/array/iterable/asynciterable/buffer/typedarray/arraybuffer/object into a stream
MIT License
207 stars 14 forks source link

Does this library supports AsyncIterator<Uint8Array> ? #21

Open raskyer opened 2 years ago

raskyer commented 2 years ago

By using @remix/remix-run and its multipart feature, we receive an AsyncIterator as data.

In order to easily upload to Azure storage, we need to transform this AsyncIterator to :

Does this library can handle such AsyncIterator? I can see in the ts types an AsyncIterator but of buffer or string not Uint8Array.

Thanks

sindresorhus commented 2 years ago

It does not currently support Uint8Array, but it's something I'm willing to support.