Package Exports
- rxmetics
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rxmetics) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Arithmetics for RxJS observables.
npm i rxmeticsThis is a minimal RxJS library for lazy people. Instead of this:
import { combineLatest, ... } from 'rxjs';
import { map, ... } from 'rxjs/operators';
// ...
combineLatest(a, b).pipe(map(([a, b]) => a + b))...You can do this:
import { add } from 'rxmetics';
// ...
add(a, b)...Or this:
import { add } from 'rxmetics/pipes';
// ...
a.pipe(add(b))...But its not just for numbers (its RxJS arithmetics):
import { and, eq } from 'rxmetics';
// ...
and(a.pipe(eq(32)), b.pipe(eq('halo')))...import { rxl } from 'rxmetics';
import { interval } from 'rxjs';
// ...
rxl`hellow ${interval(1000)}`.subscribe(console.log);
// RESULT:
// > hellow
// > hellow 1
// > hellow 2
// > hellow 3
// ...Check out the docs for more info.