sindresorhus / get-stream

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

Check if `unpipe` exists on `inputStream` before calling it #18

Closed kevva closed 8 years ago

kevva commented 8 years ago

Some streams doesn't implement the Readable interface correctly and therefore doesn't have the unpipe method attached to them.

Fixes #17.