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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use stream.Readable.from
#6
Comments
Doesn't that API make this package moot? |
@sindresorhus It does. We should either backport the generator function support or link to the API and deprecate this package. |
It's not feasible to use that API for Node.js 10 projects, since it's a recent addition, and from experience, no one updates Node.js minor versions. I have added a note in the readme about Node.js 12. I'll deprecate this package sometime in the future when Node.js 10 is obsolete. |
Node.js 10 End of life: 30 April 2021 |
stream.Readable.from
was added in Node.js v12.3.0 and v10.17.0, allowing for easier conversion to Readable Streams:As well as this, it also supports generator functions:
Perhaps we could utilise this here?
// @sindresorhus
The text was updated successfully, but these errors were encountered: