# filter-search

> Filter a list

Latest version **1.2.1** (published 2018-08-01) · ISC license · 0 weekly downloads

## Install

```sh
npm install filter-search
pnpm add filter-search
yarn add filter-search
bun add filter-search
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.1 |
| Published | 2018-08-01 |
| First published | 2018-01-23 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 300.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | carlos agosto |
| Maintainers | cagosto |
| Keywords | ES6, filter, front end, search |

## Links

- npm: https://www.npmjs.com/package/filter-search
- Repository: https://github.com/cagosto/filter-search
- Homepage: https://codepen.io/Cagosto/pen/LegEao
- Issues: https://github.com/cagosto/filter-search/issues
- npm.io page: https://npm.io/package/filter-search

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 1.2.1 (latest) — 2018-08-01
- 1.2.0 — 2018-08-01
- 1.1.1 — 2018-07-30
- 1.1.0 — 2018-07-30
- 1.0.0 — 2018-01-23

## README

# Filter Search

Filter down a list by searching using an ES6 class that can be extended to fit your needs.  Basic example [here](https://codepen.io/Cagosto/pen/LegEao).

## How to use
First import the class to be used.

```
import FILTER from 'filter-search';
```

Then pass it the required arguments for set up.  As listed below.

| Options         | Type        | Require    | Default Value    |
| -------------   |-----------  | ---------  |----------------  |
| holder          | String      | true       | ''               |
| filter          | String      | true       | ''               |
| searchInput     | String      | true       | ''               |
| displayFilter   | String      | false      | null             |
| filterList      | Array       | true       | []               |
| activeKeyClass  | String      | false      | ''               |
| keyboardActive  | Boolean     | false      | false            |

```
new FILTER({
  holder: '.filter-scroll',
  filter: '.filter-box',
  searchInput: '#filter-search',
  filterList : [
    "Afghanistan",
    "Albania",
    "Algeria",
    "Andorra",
    "Angola",
    "Anguilla"
  ],
});
```

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