sindresorhus / get-stream

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

extract stream buffering behavior into submodule #13

Closed jamestalmage closed 8 years ago

jamestalmage commented 8 years ago

This incorporates the stream buffering behavior into a submodule buffer-stream.

That submodule creates a PassThrough stream that simply buffers the data passed through it.

It has two addtional methods getBufferedValue and getBufferedLength.

I think it makes the code easier to understand.

sindresorhus commented 8 years ago

I think it makes the code easier to understand.

Indeed. Good cleanup! :)