<commit_before># hapi-raven-boom [![Build Status](https://travis-ci.org/antonsamper/hapi-raven-boom.svg?branch=master)](https://travis-ci.org/antonsamper/hapi-raven-boom)
A Hapi plugin for sending exceptions to Sentry.io through Raven. 

This is a fork of [@bendrucker's](https://github.com/bendrucker/hapi-raven) `hapi-raven@5.0.0` package that also
captures [Boom](https://github.com/hapijs/boom) responses automatically.


## Requirements
The plugin is written in ES2016, please use **Node.js v4 or later**.


## Installation
Add `hapi-cron` as a dependency to your project:

```bash
$ npm i -S hapi-raven-boom
```


## Usage
```javascript
const Hapi = require('hapi');
const Server = new Hapi.Server();
Server.connection();

Server.register({
    register: require('hapi-raven-boom'),
    options: {
        dsn: process.env.SENTRY_DSN,
        settings: {
            captureUnhandledRejections: true
        },
        tags: 'some-tag'
    },
}, (err) => {
<commit_msg>docs(readme): updating plugin name<commit_after># hapi-raven-boom [![Build Status](https://travis-ci.org/antonsamper/hapi-raven-boom.svg?branch=master)](https://travis-ci.org/antonsamper/hapi-raven-boom)
A Hapi plugin for sending exceptions to Sentry.io through Raven. 

This is a fork of [@bendrucker's](https://github.com/bendrucker/hapi-raven) `hapi-raven@5.0.0` package that also
captures [Boom](https://github.com/hapijs/boom) responses automatically.


## Requirements
The plugin is written in ES2016, please use **Node.js v4 or later**.


## Installation
Add `hapi-raven-boom` as a dependency to your project:

```bash
$ npm i -S hapi-raven-boom
```


## Usage
```javascript
const Hapi = require('hapi');
const Server = new Hapi.Server();
Server.connection();

Server.register({
    register: require('hapi-raven-boom'),
    options: {
        dsn: process.env.SENTRY_DSN,
        settings: {
            captureUnhandledRejections: true
        },
        tags: 'some-tag'
    },
}, (err) => {

{'fraction_non_alphanumeric': 0.15174506828528073, 'fraction_numerical': 0.008093070308548306, 'mean_word_length': 3.720763723150358, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 8, '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': '434520', 'n_tokens_mistral': 725, 'n_tokens_neox': 690, 'n_words': 157}