sindresorhus / get-stream

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

Add a test for big chunks #70

Closed ehmicky closed 1 year ago

ehmicky commented 1 year ago

This adds a test for streams which have chunks of big size (larger than buffer.constants.MAX_STRING_LENGTH). get-stream now handles that edge case and does not crash anymore.