{"_id":"matches-selector","_rev":"29473","name":"matches-selector","description":"Check if a DOM element matches a given selector, with decent browser support and unit tests.","dist-tags":{"latest":"1.2.0"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"time":{"modified":"2021-06-03T10:04:35.000Z","created":"2013-03-13T17:03:53.776Z","1.2.0":"2017-06-23T12:23:53.059Z","1.1.0":"2017-06-23T04:44:57.318Z","1.0.0":"2013-12-31T01:18:13.800Z","0.0.2":"2013-10-19T11:49:15.833Z","0.0.1":"2013-03-13T17:03:53.776Z"},"users":{"mrmartineau":true,"monjer":true,"panlw":true},"repository":{"type":"git","url":"git+https://github.com/ForbesLindesay/matches-selector.git"},"versions":{"1.2.0":{"name":"matches-selector","version":"1.2.0","description":"Check if a DOM element matches a given selector, with decent browser support and unit tests.","keywords":["browserify","CSS","selector"],"repository":{"type":"git","url":"git+https://github.com/ForbesLindesay/matches-selector.git"},"license":"MIT","scripts":{"test":"run-browser test/index.js"},"devDependencies":{"domify":"~1.1.1","tape":"~2.3.2","run-browser":"~2.0.2"},"testling":{"files":"test/index.js","browsers":["iexplore/8.0","iexplore/10.0","iexplore/9.0","chrome/30.0","chrome/31.0","chrome/canary","firefox/4.0","firefox/10.0","firefox/15.0","firefox/20.0","firefox/21.0","firefox/22.0","firefox/23.0","firefox/24.0","firefox/25.0","firefox/nightly","opera/11.0","opera/17.0","opera/next","safari/5.0.5","safari/5.1","safari/6.0","iphone/6.0","ipad/6.0"]},"gitHead":"7edea5271b9f0ff0361ac61f34ae6375612f6b75","bugs":{"url":"https://github.com/ForbesLindesay/matches-selector/issues"},"homepage":"https://github.com/ForbesLindesay/matches-selector#readme","_id":"matches-selector@1.2.0","_npmVersion":"5.0.3","_nodeVersion":"8.0.0","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"dist":{"shasum":"d1814e7e8f43e69d22ac33c9af727dc884ecf12a","size":2335,"noattachment":false,"key":"/matches-selector/-/matches-selector-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/matches-selector/download/matches-selector-1.2.0.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/matches-selector-1.2.0.tgz_1498220632082_0.5750544692855328"},"directories":{},"publish_time":1498220633059,"_cnpm_publish_time":1498220633059,"_hasShrinkwrap":false},"1.1.0":{"name":"matches-selector","version":"1.1.0","description":"Check if a DOM element matches a given selector, with decent browser support and unit tests.","keywords":["browserify","CSS","selector"],"repository":{"type":"git","url":"git+https://github.com/ForbesLindesay/matches-selector.git"},"license":"MIT","scripts":{"test":"run-browser test/index.js"},"devDependencies":{"domify":"~1.1.1","tape":"~2.3.2","run-browser":"~2.0.2"},"testling":{"files":"test/index.js","browsers":["iexplore/8.0","iexplore/10.0","iexplore/9.0","chrome/30.0","chrome/31.0","chrome/canary","firefox/4.0","firefox/10.0","firefox/15.0","firefox/20.0","firefox/21.0","firefox/22.0","firefox/23.0","firefox/24.0","firefox/25.0","firefox/nightly","opera/11.0","opera/17.0","opera/next","safari/5.0.5","safari/5.1","safari/6.0","iphone/6.0","ipad/6.0"]},"gitHead":"ceb64b23db64411adf347e605fc2e12abcc21d3f","bugs":{"url":"https://github.com/ForbesLindesay/matches-selector/issues"},"homepage":"https://github.com/ForbesLindesay/matches-selector#readme","_id":"matches-selector@1.1.0","_npmVersion":"5.0.3","_nodeVersion":"8.0.0","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"dist":{"shasum":"85cb35222dcd510a124e0a517dc275f48b3ebd1c","size":2309,"noattachment":false,"key":"/matches-selector/-/matches-selector-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/matches-selector/download/matches-selector-1.1.0.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/matches-selector-1.1.0.tgz_1498193096231_0.36772713623940945"},"directories":{},"publish_time":1498193097318,"_cnpm_publish_time":1498193097318,"_hasShrinkwrap":false},"1.0.0":{"name":"matches-selector","version":"1.0.0","description":"Check if a DOM element matches a given selector, with decent browser support and unit tests.","keywords":["browserify","CSS","selector"],"repository":{"type":"git","url":"https://github.com/ForbesLindesay/matches-selector.git"},"license":"MIT","scripts":{"test":"run-browser test/index.js"},"devDependencies":{"domify":"~1.1.1","tape":"~2.3.2","run-browser":"~1.0.0"},"testling":{"files":"test/index.js","browsers":["iexplore/8.0","iexplore/10.0","iexplore/9.0","chrome/30.0","chrome/31.0","chrome/canary","firefox/4.0","firefox/10.0","firefox/15.0","firefox/20.0","firefox/21.0","firefox/22.0","firefox/23.0","firefox/24.0","firefox/25.0","firefox/nightly","opera/11.0","opera/17.0","opera/next","safari/5.0.5","safari/5.1","safari/6.0","iphone/6.0","ipad/6.0"]},"readmeFilename":"Readme.md","bugs":{"url":"https://github.com/ForbesLindesay/matches-selector/issues"},"homepage":"https://github.com/ForbesLindesay/matches-selector","_id":"matches-selector@1.0.0","dist":{"shasum":"434833447026a25ea4999edab18e4b8892b25721","size":2254,"noattachment":false,"key":"/matches-selector/-/matches-selector-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/matches-selector/download/matches-selector-1.0.0.tgz"},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"directories":{},"publish_time":1388452693800,"_cnpm_publish_time":1388452693800,"_hasShrinkwrap":false},"0.0.2":{"name":"matches-selector","version":"0.0.2","description":"Check if an element matches a given selector.","keywords":["browserify","CSS","selector"],"repository":{"type":"git","url":"https://github.com/ForbesLindesay/matches-selector.git"},"author":{"name":"TJ Holowaychuk"},"license":"MIT","readmeFilename":"Readme.md","bugs":{"url":"https://github.com/ForbesLindesay/matches-selector/issues"},"_id":"matches-selector@0.0.2","dist":{"shasum":"b45241f29faadb59f28610e31584cc33b50c63c3","size":23301,"noattachment":false,"key":"/matches-selector/-/matches-selector-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/matches-selector/download/matches-selector-0.0.2.tgz"},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"directories":{},"publish_time":1382183355833,"_cnpm_publish_time":1382183355833,"_hasShrinkwrap":false},"0.0.1":{"name":"matches-selector","version":"0.0.1","description":"Check if an element matches a given selector.","keywords":["browserify","CSS","selector"],"repository":{"type":"git","url":"https://github.com/ForbesLindesay/matches-selector.git"},"author":{"name":"TJ Holowaychuk"},"license":"MIT","readmeFilename":"Readme.md","_id":"matches-selector@0.0.1","dist":{"shasum":"1df5262243ae341c1a0804dd302048267ac713bb","size":23309,"noattachment":false,"key":"/matches-selector/-/matches-selector-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/matches-selector/download/matches-selector-0.0.1.tgz"},"_from":".","_npmVersion":"1.2.10","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"directories":{},"publish_time":1363194233776,"_cnpm_publish_time":1363194233776,"_hasShrinkwrap":false}},"readme":"# matches-selector\n\nCheck if an element matches a given selector.  For use with browserify.\n\n[![Dependency Status](https://gemnasium.com/ForbesLindesay/matches-selector.png)](https://gemnasium.com/ForbesLindesay/matches-selector)\n[![NPM version](https://badge.fury.io/js/matches-selector.png)](http://badge.fury.io/js/matches-selector)\n\n[![browser support](https://ci.testling.com/ForbesLindesay/matches-selector.png)](https://ci.testling.com/ForbesLindesay/matches-selector)\n\n## Installation\n\n    $ npm install matches-selector\n\n## Example\n\n```js\nvar matches = require('matches-selector');\nmatches(el, 'ul li a');\n// => true or false\n```\n\n## Running Tests\n\nTests 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:\n\n```\nnpm install\nnpm test\n```\n\nTo re-run tests after making changes, just refresh your browser\n\n## License\n\n  MIT\n","_attachments":{},"homepage":"https://github.com/ForbesLindesay/matches-selector#readme","bugs":{"url":"https://github.com/ForbesLindesay/matches-selector/issues"},"license":"MIT"}