<commit_before># hapi-twitter-search-plugin

[![Build Status](https://travis-ci.org/RisingStack/hapi-twitter-search-plugin.svg?branch=master)](https://travis-ci.org/RisingStack/hapi-twitter-search-plugin)

## How to use

### GET /
GET /?q=nodejs

### Register as plugin
``` javascript
server.pack.register({
  plugin: plugin,
  options: {
    twitter: {
      key: '..',
      secret: '..',
      token: '..',
      tokenSecret: '..'
    }
  }
});
```

## Test
`npm test`  
`npm run coverage`
<commit_msg>Improve README with npm install<commit_after># hapi-twitter-search-plugin

[![Build Status](https://travis-ci.org/RisingStack/hapi-twitter-search-plugin.svg?branch=master)](https://travis-ci.org/RisingStack/hapi-twitter-search-plugin)

## How to use

`npm install --save hapi-twitter-search-plugin`

### Register as plugin
``` javascript
server.pack.register({
  plugin: plugin,
  options: {
    twitter: {
      key: '..',
      secret: '..',
      token: '..',
      tokenSecret: '..'
    }
  }
});
```

### GET /
GET /?q=nodejs

## Test
`npm test`  
`npm run coverage`

{'fraction_non_alphanumeric': 0.19405756731662024, 'fraction_numerical': 0.0, 'mean_word_length': 3.098859315589354, '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': '3534447', 'n_tokens_mistral': 404, 'n_tokens_neox': 388, 'n_words': 66}