stream-to-array
stream-to-array copied to clipboard
This functionality is being upstreamed :)
As part of a process of alignment with the tc39 iterator helpers proposal - just letting you know.
The main difference is that this doesn't listen to data
(which we believe is better) and instead uses the async iterator protocol (which in turn uses readable
).
https://github.com/nodejs/node/pull/41553
Feedback welcome
Actually, it's already in Node since v17.5 — still experimental probably because they're waiting to see how the TC39 proposal will land. Anyway, might be nice to add a little message in the README telling people they probably don't need this lib anymore.