<commit_before># chi-matches

[![NPM](https://nodei.co/npm/chi-matches.png?compact=true)](https://nodei.co/npm/chi-matches/)

[![Build Status](https://drone.io/github.com/conradz/chi-matches/status.png)](https://drone.io/github.com/conradz/chi-matches/latest)
[![Dependency Status](https://gemnasium.com/conradz/chi-matches.png)](https://gemnasium.com/conradz/chi-matches)

[![Selenium Test Status](https://saucelabs.com/browser-matrix/chi-matches.svg)](https://saucelabs.com/u/chi-matches)

Check if a DOM element matches a CSS selector.

A cross-browser wrapper for the
[`Element#matches`](https://developer.mozilla.org/en-US/docs/Web/API/Element.matches)
function. It will choose the appropriate native method (including vendor
prefixes) to use.

This module uses Node.js-style modules, for best results use
[browserify](https://github.com/substack/node-browserify).

## Example

```js
var matches = require('chi-matches');

var div = document.createElement('div');
matches(div, 'div'); // true
matches(div, 'p'); // false
```

## Reference<commit_msg>Update Sauce Labs status image url<commit_after># chi-matches

[![NPM](https://nodei.co/npm/chi-matches.png?compact=true)](https://nodei.co/npm/chi-matches/)

[![Build Status](https://drone.io/github.com/conradz/chi-matches/status.png)](https://drone.io/github.com/conradz/chi-matches/latest)
[![Dependency Status](https://gemnasium.com/conradz/chi-matches.png)](https://gemnasium.com/conradz/chi-matches)

[![Selenium Test Status](https://saucelabs.com/browser-matrix/chi-matches-test.svg)](https://saucelabs.com/u/chi-matches-test)

Check if a DOM element matches a CSS selector.

A cross-browser wrapper for the
[`Element#matches`](https://developer.mozilla.org/en-US/docs/Web/API/Element.matches)
function. It will choose the appropriate native method (including vendor
prefixes) to use.

This module uses Node.js-style modules, for best results use
[browserify](https://github.com/substack/node-browserify).

## Example

```js
var matches = require('chi-matches');

var div = document.createElement('div');
matches(div, 'div'); // true
matches(div, 'p'); // false
```

## Reference
{'fraction_non_alphanumeric': 0.17935544138253154, 'fraction_numerical': 0.0, 'mean_word_length': 5.155172413793103, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 20, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1127059', 'n_tokens_mistral': 728, 'n_tokens_neox': 705, 'n_words': 130}