stream-to-async-iterable
v1.0.8
Published
Converts a stream to an `AsyncIterable<T>`
Downloads
3
Readme
stream-to-async-iterable
Converts a stream to an AsyncIterable<T>
Usage
import { toIterable } from 'stream-to-async-iterable'
const asyncIterable = toIterable<object>(stream)
for await (const item of asyncItereable) {
console.log(item)
}