A small library for switching between streams, generators, and arrays. See docs for details.
By default, this library uses WHATWG ReadableStream
, which is only available
on Node 18+. If you are on an older version of Node or otherwise need to use
NodeJS.ReadableStream
, import from:
import { yieldStream } from "yield-stream/node";