https://github.com/spellcraftai/yield-stream
A small library for switching between streams, generators, and arrays.
https://github.com/spellcraftai/yield-stream
Last synced: about 1 year ago
JSON representation
A small library for switching between streams, generators, and arrays.
- Host: GitHub
- URL: https://github.com/spellcraftai/yield-stream
- Owner: SpellcraftAI
- License: mit
- Created: 2023-02-13T09:39:13.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-06-17T02:38:54.000Z (about 3 years ago)
- Last Synced: 2025-04-06T05:54:04.080Z (about 1 year ago)
- Language: TypeScript
- Homepage: https://yield-stream.vercel.app
- Size: 158 KB
- Stars: 10
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `yield-stream`
[**Github**](https://github.com/gptlabs/yield-stream) |
[**NPM**](https://npmjs.com/package/yield-stream) |
[**Docs**](https://yield-stream.vercel.app)
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:
```ts
import { yieldStream } from "yield-stream/node";
```