{"_id":"dom-matches","_rev":"175349","name":"dom-matches","description":"Check if a DOM element matches a given selector","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"necolas","email":"nicolasgallagher@gmail.com"}],"time":{"modified":"2022-10-18T09:09:19.000Z","created":"2014-08-16T02:18:22.000Z","2.0.0":"2015-08-18T17:43:00.938Z","1.0.1":"2014-08-20T23:38:39.875Z","1.0.0":"2014-08-16T02:18:22.000Z"},"users":{},"author":{"name":"Nicolas Gallagher"},"repository":{"type":"git","url":"git+https://github.com/necolas/dom-matches.git"},"versions":{"2.0.0":{"name":"dom-matches","description":"Check if a DOM element matches a given selector","version":"2.0.0","files":["index.js"],"devDependencies":{"karma":"~0.12.21","karma-chrome-launcher":"~0.1.4","karma-cli":"~0.0.4","karma-commonjs":"~0.0.11","karma-firefox-launcher":"~0.1.3","karma-jasmine":"~0.1.5","karma-safari-launcher":"~0.1.1"},"scripts":{"start":"karma start","test":"karma start --single-run"},"author":{"name":"Nicolas Gallagher"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/necolas/dom-matches.git"},"keywords":["browser","dom","element","matches","selector"],"gitHead":"b68abd2b117da8cda9922c4f6b6b1b1f98c27958","bugs":{"url":"https://github.com/necolas/dom-matches/issues"},"homepage":"https://github.com/necolas/dom-matches#readme","_id":"dom-matches@2.0.0","_shasum":"d2728b416a87533980eb089b848d253cf23a758c","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"necolas","email":"nicolasgallagher@gmail.com"},"dist":{"shasum":"d2728b416a87533980eb089b848d253cf23a758c","size":2032,"noattachment":false,"key":"/dom-matches/-/dom-matches-2.0.0.tgz","tarball":"http://name.csiicloud.com:7001/dom-matches/download/dom-matches-2.0.0.tgz"},"maintainers":[{"name":"necolas","email":"nicolasgallagher@gmail.com"}],"directories":{},"publish_time":1439919780938,"_hasShrinkwrap":false,"_cnpm_publish_time":1439919780938,"_cnpmcore_publish_time":"2021-12-16T18:54:42.825Z"},"1.0.1":{"name":"dom-matches","description":"Check if a DOM element matches a given selector","version":"1.0.1","files":["index.js"],"devDependencies":{"karma":"~0.12.21","karma-chrome-launcher":"~0.1.4","karma-cli":"~0.0.4","karma-commonjs":"~0.0.11","karma-firefox-launcher":"~0.1.3","karma-jasmine":"~0.1.5","karma-safari-launcher":"~0.1.1"},"scripts":{"start":"karma start","test":"karma start --single-run"},"author":{"name":"Nicolas Gallagher"},"license":"MIT","repository":{"type":"git","url":"https://github.com/necolas/dom-matches.git"},"keywords":["browser","dom","element","matches","selector"],"bugs":{"url":"https://github.com/necolas/dom-matches/issues"},"homepage":"https://github.com/necolas/dom-matches","_id":"dom-matches@1.0.1","dist":{"shasum":"fa7b57cd8287895bf40936b8d8544ba8e8b35a1f","size":1385,"noattachment":false,"key":"/dom-matches/-/dom-matches-1.0.1.tgz","tarball":"http://name.csiicloud.com:7001/dom-matches/download/dom-matches-1.0.1.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"necolas","email":"nicolasgallagher@gmail.com"},"maintainers":[{"name":"necolas","email":"nicolasgallagher@gmail.com"}],"directories":{},"publish_time":1408577919875,"_hasShrinkwrap":false,"_cnpm_publish_time":1408577919875,"_cnpmcore_publish_time":"2021-12-16T18:54:43.022Z"},"1.0.0":{"name":"dom-matches","description":"Check if a DOM element matches a given selector","version":"1.0.0","files":["index.js"],"devDependencies":{"karma":"~0.12.21","karma-chrome-launcher":"~0.1.4","karma-cli":"~0.0.4","karma-commonjs":"~0.0.11","karma-firefox-launcher":"~0.1.3","karma-jasmine":"~0.1.5","karma-safari-launcher":"~0.1.1"},"scripts":{"start":"karma start","test":"karma start --single-run"},"author":{"name":"Nicolas Gallagher"},"license":"MIT","repository":{"type":"git","url":"https://github.com/necolas/dom-matches.git"},"keywords":["browser","dom","element","matches","selector"],"bugs":{"url":"https://github.com/necolas/dom-matches/issues"},"homepage":"https://github.com/necolas/dom-matches","_id":"dom-matches@1.0.0","dist":{"shasum":"501277131334420fafd68542eff725f96d44c0bc","size":1378,"noattachment":false,"key":"/dom-matches/-/dom-matches-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/dom-matches/download/dom-matches-1.0.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"necolas","email":"nicolasgallagher@gmail.com"},"maintainers":[{"name":"necolas","email":"nicolasgallagher@gmail.com"}],"directories":{},"publish_time":1408155502000,"_hasShrinkwrap":false,"_cnpm_publish_time":1408155502000,"_cnpmcore_publish_time":"2021-12-16T18:54:43.246Z"}},"readme":"# dom-matches\n\n[![Build Status](https://secure.travis-ci.org/necolas/dom-matches.png?branch=master)](http://travis-ci.org/necolas/dom-matches)\n\nCheck if a DOM element matches a given selector.\n\n## Installation\n\n```\nnpm install dom-matches\n```\n\n## API\n\n### matches(elem, selector)\n\n* `elem`: a DOM node.\n* `selector`: a CSS selector string.\n\n```js\nvar matches = require('dom-matches');\nvar elem = document.querySelector('.foo');\n\nmatches(elem, '.foo');\n// => true\n\nmatches(elem, '.bar');\n// => false\n```\n\n## Browser support\n\n* Google Chrome\n* Firefox ESR+\n* Internet Explorer 10+\n* Safari 6+\n* Opera\n","_attachments":{},"homepage":"https://github.com/necolas/dom-matches#readme","bugs":{"url":"https://github.com/necolas/dom-matches/issues"},"license":"MIT"}