# angular-pipes-module

> Reusable Angular pipes for sorting and filtering

Latest version **1.0.2** (published 2020-11-20) · 0 weekly downloads

## Install

```sh
npm install angular-pipes-module
pnpm add angular-pipes-module
yarn add angular-pipes-module
bun add angular-pipes-module
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2020-11-20 |
| First published | 2019-10-18 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 28.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | paulgilchrist |

## Links

- npm: https://www.npmjs.com/package/angular-pipes-module
- Repository: https://github.com/PaulGilchrist/angular-libraries
- Homepage: https://github.com/PaulGilchrist/angular-libraries#readme
- Issues: https://github.com/PaulGilchrist/angular-libraries/issues
- npm.io page: https://npm.io/package/angular-pipes-module

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^2.0.0

## Recent versions

- 1.0.2 (latest) — 2020-11-20
- 1.0.1 — 2020-02-19
- 1.0.0 — 2019-10-28
- 0.0.1 — 2019-10-18

## README

# angular-pipes-module

This library contains reusable Angular pipes for sorting and filtering.

## Pipes

* filterObjects - Filters out any object where none of its properties contain the passed in search string ```filterObjects(input: object[], query: string)```
* sortObjects - Sort objects either accending or decending by comparing one of the object's properites ```sortObjects(input: object[], field: string, desc = false)```

## Usage Example

```html
<tr *ngFor="let user of users | filterObjects:searchString | sortObjects:sortType:sortReverse">
```

---
_Source: https://npm.io/package/angular-pipes-module · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
