What is the best way to create a readable stream from an array and pipe values to a writable stream? I have seen substack\'s example using setInterval and I can implement that s
As of Node 12.3, you can use stream.Readable.from(iterable, [options]) instead.
const { Readable } = require('stream'); const readableStream = Readable.from(arr);