<commit_before># compat.js [![Build Status](https://travis-ci.org/jgardella/compat.svg?branch=master)](https://travis-ci.org/jgardella/compat)

Static analysis tool for detecting browser compatibility issues in JavaScript and HTML.

# Installation

```
npm install compat
```

Note: compat currently cannot be installed globally.

# Usage

By default, compat will check files ending with `.js` or `.html` in the current directory.

```
compat
```

To manually specify target files/directories, use the `--target` (`-t`) flag.

```
compat --target fileOne.js fileTwo.js directory
```

By default, compat will not recursively traverse directories to find all `.js` or `.html` files.
Enable this functionality with the `--recursive` (`-r`) flag.

```
compat --recursive
```

By default, compat will search for all defined features when analysing targets. To specify
what features compat will search for, use the `--features` (`-f`) flag.

```<commit_msg>Fix install command.<commit_after># compat.js [![Build Status](https://travis-ci.org/jgardella/compat.svg?branch=master)](https://travis-ci.org/jgardella/compat)

Static analysis tool for detecting browser compatibility issues in JavaScript and HTML.

# Installation

```
npm install compat-cli
```

Note: compat currently cannot be installed globally.

# Usage

By default, compat will check files ending with `.js` or `.html` in the current directory.

```
compat
```

To manually specify target files/directories, use the `--target` (`-t`) flag.

```
compat --target fileOne.js fileTwo.js directory
```

By default, compat will not recursively traverse directories to find all `.js` or `.html` files.
Enable this functionality with the `--recursive` (`-r`) flag.

```
compat --recursive
```

By default, compat will search for all defined features when analysing targets. To specify
what features compat will search for, use the `--features` (`-f`) flag.

```
{'fraction_non_alphanumeric': 0.12650287506534239, 'fraction_numerical': 0.0, 'mean_word_length': 4.422096317280453, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '276496', 'n_tokens_mistral': 581, 'n_tokens_neox': 538, 'n_words': 222}