# component-matches-selector

> Check if an element matches a given selector

Latest version **0.1.7** (published 2019-04-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install component-matches-selector
pnpm add component-matches-selector
yarn add component-matches-selector
bun add component-matches-selector
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.7 |
| Published | 2019-04-21 |
| First published | 2014-02-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 98.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 14 |
| Maintainers | amasad, anthonyshort, calvinfo, clintwood, coreh, cristiandouce, defunctzombie, dfcreative, dominicbarnes, forbeslindesay, hughsk, ianstormtaylor, jonathanong, jongleberry, juliangruber, kelonye, mattmueller, nami-doc, ockham, queckezz, rauchg, retrofox, stagas, stephenmathieson, swatinem, thehydroimpulse, timaschew, timoxley, tjholowaychuk, tootallnate, trevorgerhardt, yields |
| Keywords | match, element, selector |

## Links

- npm: https://www.npmjs.com/package/component-matches-selector
- Repository: https://github.com/component/matches-selector
- Homepage: https://github.com/component/matches-selector#readme
- Issues: https://github.com/component/matches-selector/issues
- npm.io page: https://npm.io/package/component-matches-selector

## Dependencies (2)

- [global-object](https://npm.io/package/global-object.md) ^1.0.0
- [component-query](https://npm.io/package/component-query.md) *

## Recent versions

- 0.1.7 (latest) — 2019-04-21
- 0.1.6 — 2016-04-01
- 0.1.5 — 2014-07-27
- 0.1.4 — 2014-05-28
- 0.1.3 — 2014-05-28
- 0.1.2 — 2014-02-10

## README

# matches-selector

  Check if an element matches a given selector.

## Installation

    $ component install component/matches-selector

## Example

```js
var matches = require('matches-selector');
matches(el, 'ul li a');
// => true
```

## License

  MIT

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