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) 251 B
import { sf } from "./index"; import { rangeStream } from "./rangeStream"; it("works", async () => { expect(await sf(rangeStream(5)).toArray()).toEqual([0, 1, 2, 3, 4]); expect(await sf(rangeStream(0, 5)).toArray()).toEqual([0, 1, 2, 3, 4]); });