streamiterator
Turns browser streams into asynchronous iterator. This works with fetch
responses, fetch
body, files, blobs, readable streams.
For compatibility reasons works with node-fetch
too.
{ for await const chunk of console } // or in more verbose but more explicit way: { const response = await for await const chunk of console }