-
-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should we use is-stream package? #111
Comments
Not all compatible streams inherit from |
Yes, definitely ducktype it. |
On the other hand, people stick I do agree that |
I'd like to get @contra's thoughts though. |
Yeah, checking for .pipe is good enough for me - instanceof sucks. |
Done |
We currently use
instanceof
to check if something is a stream. However, theis-stream
module on npm usesstream !== null && typeof stream === 'object' && typeof stream.pipe === 'function'
; should we switch to the external module?cc @contra @sindresorhus
The text was updated successfully, but these errors were encountered: