Skip to content

fromStream

fromStream: (stream) => AsyncIterable<any, any, any>

Defined in: utils/iterables/from-stream.js:28

Returns a Node.js Readable stream as an async iterable. All Readable streams support Symbol.asyncIterator since Node.js 12.

any

Readable stream to iterate

AsyncIterable<any, any, any>

  • The stream itself, which natively supports async iteration