{"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","tarball":"http://registry-npm.ywwl.com/dom-matches/download/dom-matches-1.0.0.tgz","integrity":"sha512-rVtih5Mzcwn0Rui2sAp8rqS+AtulotGdSxYP4Ao2kdQhzpmOMzqu//YPX1GvEN+en5+Fc1Jbh+s9YVXfYbFGlA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHNy50wEvhSfeI7EIiFAPfpr4g8/oRlSi0Wz4a985NISAiEAmqCg3D/gnIy/DLh+/kegqm2KLq+sDt4KntbwCYmsEig="}],"size":1378,"noattachment":false,"key":"/dom-matches/-/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":{},"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","publish_time":1408155502000,"_cnpm_publish_time":1408155502000,"dist-tags":{"latest":"2.0.0"}}