Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/component/matches-selector

Check if an element matches a given selector string
https://github.com/component/matches-selector

Last synced: 12 days ago
JSON representation

Check if an element matches a given selector string

Awesome Lists containing this project

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