1.2.0 • Published 8 years ago
matches-selector v1.2.0
matches-selector
Check if an element matches a given selector. For use with browserify.
Installation
$ npm install matches-selectorExample
var matches = require('matches-selector');
matches(el, 'ul li a');
// => true or falseRunning 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 testTo re-run tests after making changes, just refresh your browser
License
MIT


