SpellcraftAI / yield-stream

A small library for switching between streams, generators, and arrays.

Home Page:https://yield-stream.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

yield-stream

Github | NPM | Docs

A small library for switching between streams, generators, and arrays. See docs for details.

Note: Using NodeJS.ReadableStream

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";

About

A small library for switching between streams, generators, and arrays.

https://yield-stream.vercel.app

License:MIT License


Languages

Language:TypeScript 96.0%Language:JavaScript 4.0%