@vielzeug/flux
v26.10.18
Published
Minimal push streams with explicit ownership, bounded buffering, and structural bridges
Readme
@vielzeug/flux
Minimal push streams with explicit ownership, bounded buffering, and structural bridges
Installation
pnpm add @vielzeug/flux
npm install @vielzeug/flux
yarn add @vielzeug/fluxQuick Start
import { toArray, interval, map, pipe, take } from '@vielzeug/flux';
const values = pipe(
interval(100),
map((value) => value * 2),
take(3),
);
console.log(await toArray(values, { maxItems: 3 })); // [0, 2, 4]Documentation
License
MIT © Helmuth Saatkamp: part of the Vielzeug monorepo.
