DEV Community

Discussion on: How to easily read all data from a ReadableStream?

Collapse
 
loige profile image
Luciano Mammino

A new way to do this (Node.js 16+) is by using the built-in stream/consumers library.

This one allows to easily accumulate binary data, JSON data and text data from any Readable stream

Still mostly unknown, but really convenient