UNPKG

sflow

Version:

sflow is a powerful and highly-extensible library designed for processing and manipulating streams of data effortlessly. Inspired by the functional programming paradigm, it provides a rich set of utilities for transforming streams, including chunking, fil

11 lines (9 loc) 326 B
import type { Awaitable } from "./Awaitable"; import { type PageFetcher, pageStream } from "./pageStream"; import { sflow } from "./sflow"; export function pageFlow<Data, Cursor>( initialCursor: Awaitable<Cursor>, fetcher: PageFetcher<Data, Cursor>, ): sflow<Data> { return sflow(pageStream(initialCursor, fetcher)); }