<commit_before>## Appuri Event Validator

A simple event validator for posting events to [Appuri's Data Platform](https://appuri.readme.io/docs/event-format).

### Usage

```
node
> var validator = require('appuri-event-validator')
undefined
> validator({ entype: 'user', evname: 'foobar', user_id: 'bob', body: {} })
{ error: null,
  value: { entype: 'user', evname: 'foobar', user_id: 'bob', body: {} } }<commit_msg>Build status badge [ci skip]<commit_after>## Appuri Event Validator

[![CircleCI](https://circleci.com/gh/appuri/node-appuri-event-validator/tree/master.svg?style=shield)](https://circleci.com/gh/appuri/node-appuri-event-validator/tree/master)

A simple event validator for posting events to [Appuri's Data Platform](https://appuri.readme.io/docs/event-format).

### Usage

```
node
> var validator = require('appuri-event-validator')
undefined
> validator({ entype: 'user', evname: 'foobar', user_id: 'bob', body: {} })
{ error: null,
  value: { entype: 'user', evname: 'foobar', user_id: 'bob', body: {} } }
{'fraction_non_alphanumeric': 0.1830574488802337, 'fraction_numerical': 0.0, 'mean_word_length': 5.425, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '5227316', 'n_tokens_mistral': 365, 'n_tokens_neox': 351, 'n_words': 83}