# filter-async-rxjs-pipe

> Some pipeable functions for rxjs 7+ which accept predicate lambdas with async return value (Promise or Observable)

Latest version **2.0.3** (published 2024-04-26) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install filter-async-rxjs-pipe
pnpm add filter-async-rxjs-pipe
yarn add filter-async-rxjs-pipe
bun add filter-async-rxjs-pipe
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.3 |
| Published | 2024-04-26 |
| First published | 2018-08-27 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 33.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Benjamin Jesuiter |
| Maintainers | bjesuiter |
| Keywords | rxjs, rxjs7, rxjs-pipe, rxjs-filter, rxjs-async-filter, observable, filter |

## Links

- npm: https://www.npmjs.com/package/filter-async-rxjs-pipe
- Repository: https://github.com/bjesuiter/filter-async-rxjs-pipe
- Homepage: https://github.com/bjesuiter/filter-async-rxjs-pipe#readme
- Issues: https://github.com/bjesuiter/filter-async-rxjs-pipe/issues
- npm.io page: https://npm.io/package/filter-async-rxjs-pipe

## Alternatives

- [byte-size](https://npm.io/package/byte-size.md) — 2.1M weekly downloads
- [speed-limiter](https://npm.io/package/speed-limiter.md) — 16.0K weekly downloads
- [@powersync/node](https://npm.io/package/@powersync/node.md) — 10.9K weekly downloads
- [@ledgerhq/coin-cardano](https://npm.io/package/@ledgerhq/coin-cardano.md) — 1.0K weekly downloads
- [@jayesol/jayeson.lib.streamfinder](https://npm.io/package/@jayesol/jayeson.lib.streamfinder.md) — 1.0K weekly downloads

## Recent versions

- 2.0.3 (latest) — 2024-04-26
- 2.0.2 — 2024-04-26
- 2.0.1 — 2024-04-16
- 2.0.0 — 2024-04-16
- 1.0.1 — 2022-02-04
- 1.0.0 — 2022-02-02
- 0.1.5 — 2019-03-21
- 0.1.4 — 2018-08-27
- 0.1.3 — 2018-08-27
- 0.1.2 — 2018-08-27
- 0.1.1 — 2018-08-27

## README

# filter-async-rxjs-pipe

Some pipeable functions for rxjs 7+ which accept predicate lambdas with async return value (Promise or Observable).

BREAKING CHANGE from ^2.0.0: This library now requires rxjs 7.0.0 or higher!

## Usage

See [filter-async.test.ts](https://github.com/bjesuiter/rxjs-pipes/blob/main/packages/filter-async/src/filter-async.test.ts)
in [Github](https://github.com/bjesuiter/rxjs-pipes/tree/main/packages/filter-async) for usage examples.

##  Provided rxjs 7+ pipes

### filterByPromise
This rxjs 7+ pipe accepts a predicate function which returns a `Thenable<boolean>` for filtering.  
(e.g. any object with a 'then' method === Promise and custom promise implementations)

### filterAsync
This rxjs 7+ pipe accepts a predicate function which returns an `Observable<boolean>` for filtering.

### Note
Both of these functions have a `parallel` flag to indicate, 
that they should run the predicate function in parallel for each emitted event from the source observable.
However, this does not work currently and should be improved in a later release.

---
_Source: https://npm.io/package/filter-async-rxjs-pipe · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
