<commit_before># punwave-slack-notifier

[![NPM version][npm-image]][npm-url]
[![Build Status][travis-image]][travis-url]
[![Coverage Status][codecov-image]][codecov-url]

> Code friendly notifier to send messages to Slack channel via webhook

## Install

```
$ npm install --save punwave-slack-notifier
```

## Usage

```js
const SlackNotifier = require('punwave-slack-notifier')

const notifier = new SlackNotifier(WEBHOOK_URI)

notifier.send({
  text: 'This is a line of text.\nAnd this is another one.'
}, (err, response) => {
  if (err) console.error(err)
  console.log(response)
})
```

## API

### notifier.send(options, callback)

Send message to Slack channel.
<commit_msg>docs: update<commit_after># punwave-slack-notifier

[![NPM version][npm-image]][npm-url]
[![Build Status][travis-image]][travis-url]
[![Coverage Status][codecov-image]][codecov-url]

> Code friendly notifier to send messages to Slack channel via webhook

## Install

```
$ npm install --save punwave-slack-notifier
```

## Usage

```js
const SlackNotifier = require('punwave-slack-notifier')

const notifier = new SlackNotifier(WEBHOOK_URL)

notifier.send({
  text: 'This is a line of text.\nAnd this is another one.'
}, (err, response) => {
  if (err) console.error(err)
  console.log(response)
})
```

## API

### notifier.send(options, callback)

Send message to Slack channel.

{'fraction_non_alphanumeric': 0.15920763022743947, 'fraction_numerical': 0.0, 'mean_word_length': 4.982456140350878, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '153425', 'n_tokens_mistral': 501, 'n_tokens_neox': 482, 'n_words': 119}