sindresorhus / get-stream

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

Improve performance #61

Closed ehmicky closed 1 year ago

ehmicky commented 1 year ago

It seems to me the PassThrough stream's sole purpose is to change the encoding, according to the encoding option. Please let me know if that assumption is incorrect. If not, it can be skipped if the encoding does not change.

ehmicky commented 1 year ago

Closing in favor of another upcoming PR.