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

8 lines (6 loc) 257 B
import { rangeStream } from "./rangeStream"; import { sflow } from "./sf"; it("works", async () => { expect(await sflow(rangeStream(5)).toArray()).toEqual([0, 1, 2, 3, 4]); expect(await sflow(rangeStream(0, 5)).toArray()).toEqual([0, 1, 2, 3, 4]); });