<commit_before># Raygun4js

Raygun.io plugin for JavaScript

## Getting Started
Download the [production version][min] or the [development version][max].

[min]: https://raw.github.com/MindscapeHQ/raygun4js/master/dist/raygun.min.js
[max]: https://raw.github.com/MindscapeHQ/raygun4js/master/dist/raygun.js

In your web page:

```html
<script src="dist/raygun.min.js"></script>
<script>
  Raygun.init('yourApiKey');
</script>
```

To submit manual errors:

```
try {
  // your code
}
catch(e) {
  Raygun.send(e);
}
```

To attach the window.onerror handler call:

```html
<script src="dist/raygun.min.js"></script>
<script>
  Raygun.init('yourApiKey').attach();
</script>
```

If you need to detach it:

```
Raygun.detach();
```

## Documentation
_(Coming soon)_<commit_msg>specify language for syntax highlighting<commit_after># Raygun4js

Raygun.io plugin for JavaScript

## Getting Started
Download the [production version][min] or the [development version][max].

[min]: https://raw.github.com/MindscapeHQ/raygun4js/master/dist/raygun.min.js
[max]: https://raw.github.com/MindscapeHQ/raygun4js/master/dist/raygun.js

In your web page:

```html
<script src="dist/raygun.min.js"></script>
<script>
  Raygun.init('yourApiKey');
</script>
```

To submit manual errors:

```javascript
try {
  // your code
}
catch(e) {
  Raygun.send(e);
}
```

To attach the window.onerror handler call:

```html
<script src="dist/raygun.min.js"></script>
<script>
  Raygun.init('yourApiKey').attach();
</script>
```

If you need to detach it:

```javascript
Raygun.detach();
```

## Documentation
_(Coming soon)_
{'fraction_non_alphanumeric': 0.17680250783699059, 'fraction_numerical': 0.003761755485893417, 'mean_word_length': 4.846153846153846, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '997159', 'n_tokens_mistral': 597, 'n_tokens_neox': 565, 'n_words': 127}