vmes-flowable
Version:
ceshibao
36 lines (22 loc) • 941 B
Markdown
# matches-selector
Check if an element matches a given selector. For use with browserify.
[](https://gemnasium.com/ForbesLindesay/matches-selector)
[](http://badge.fury.io/js/matches-selector)
[](https://ci.testling.com/ForbesLindesay/matches-selector)
## Installation
$ npm install matches-selector
## Example
```js
var matches = require('matches-selector');
matches(el, 'ul li a');
// => true or false
```
## Running Tests
Tests can be easilly run locally in the browser of your choice, and have passed if it ends with `# ok`. They are also run on testling-ci when pushed to the repository:
```
npm install
npm test
```
To re-run tests after making changes, just refresh your browser
## License
MIT