sindresorhus / get-stream

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

Add support for streams in object mode #86

Closed ehmicky closed 1 year ago

ehmicky commented 1 year ago

This PR adds support for streams in object mode.

This does so by adding a getStreamAsArray() method. It is like the other methods except the stream's contents is returned as an array instead (e.g. as an array of objects).

sindresorhus commented 1 year ago

Conflict

ehmicky commented 1 year ago

Fixed :+1: