# bubble-match

> returns the first element that matches options.filter when tracking parents from options.el to options.parent

Latest version **1.0.5** (published 2016-09-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install bubble-match
pnpm add bubble-match
yarn add bubble-match
bun add bubble-match
```

## 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.0.5 |
| Published | 2016-09-16 |
| First published | 2016-02-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | 1stdibs.com, Inc. |
| Maintainers | 1stdibs |

## Links

- npm: https://www.npmjs.com/package/bubble-match
- Repository: https://github.com/1stdibs/bubble-match
- Homepage: https://github.com/1stdibs/bubble-match#readme
- Issues: https://github.com/1stdibs/bubble-match/issues
- npm.io page: https://npm.io/package/bubble-match

## Dependencies (2)

- [lodash.assign](https://npm.io/package/lodash.assign.md) ^3.2.0
- [matches-selector](https://npm.io/package/matches-selector.md) ^1.0.0

## Recent versions

- 1.0.5 (latest) — 2016-09-16
- 1.0.4 — 2016-06-24
- 1.0.3 — 2016-03-03
- 1.0.2 — 2016-02-18
- 1.0.1 — 2016-02-18
- 1.0.0 — 2016-02-01

## README

# bubble-match
returns the first element that matches options.filter when tracking parents from options.el to options.parent

##installation:
```sh
npm install --save bubble-match
```

##usage:
```js
const bubbleMatch = require('bubble-match');
```

##documentation:
#### el
bubble-match will start searching for a matching element with the element passed through `options.el`

### parent
bubble-match will search up to, but not include, `options.parent` unless `matchParent: true` is passed in

#### matchParent
if `true`, bubble-match will include `options.parent` in its search for a matching element

### filter
selector criteria for matching element

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