0.0.3 • Published 3 years ago
streamrx v0.0.3
streamrx
Implementing RxJs with Streams API
install
npm
npm i streamrxyarn
yarn add streamrxpnpm
pnpm i streamrxusage
import { interval, takeWhile, map } from 'streamrx';
interval(1000)
.pipeThrough(map(x => 10 - x))
.pipeThrough(takeWhile(x => x > 0))
.pipeTo(new WritableStream({
write(chunk) {
console.log(chunk);
}
}));