UNPKG

response-iterator

Version:

Creates an async iterator for a variety of inputs in the browser and node. Supports fetch, node-fetch, and cross-fetch

3 lines (2 loc) 163 B
import type { Readable as NodeReadableStream } from 'stream'; export default function nodeStreamIterator<T>(stream: NodeReadableStream): AsyncIterableIterator<T>;