matches-selector
Check if an element matches a given selector.
Last updated 12 years ago by forbeslindesay .
MIT · Repository · Original npm · Tarball · package.json
$ gnpm install matches-selector 
SYNC missed versions from official npm registry.

matches-selector

Check if an element matches a given selector. For use with browserify.

Dependency Status NPM version

browser support

Installation

$ npm install matches-selector

Example

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

Current Tags

  • 1.2.0                                ...           latest (7 years ago)

5 Versions

  • 1.2.0                                ...           7 years ago
  • 1.1.0                                ...           7 years ago
  • 1.0.0                                ...           11 years ago
  • 0.0.2                                ...           11 years ago
  • 0.0.1                                ...           12 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None

Copyright 2013 - present © cnpmjs.org | Home |