<commit_before># attendant
[![NPM version][npm-image]][npm-url] 
[![build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]

A small-ish test server built with [koa](koajs.com). Best used to test your
frontend packages. Requires node 0.11 or higher.

## Installation
```bash
$ npm i --save attendant
```
## Overview
```js
/**
 * Initialize the server and set
 * the response body.
 */

var attendant = require('attendant');
var request = require('supertest');
var server = attendant({foo: 'bar'});

/**
 * Run tests.
 */

request(server.listen())
  .get('/')
  .expect('Content-Type', /json/)
  .expect(200, done);
```

## API
#### attendant()
```js
// Initialize the server. Takes
// an {Object} body as an argument
// to send back as a response.

var attendant = require('attendant');
var request = require('supertest');
var server = attendant({tobi: 'ferret'});

request(server.listen())
  .get('/')
  .expect('Content-Type', /json/)
  .expect(200, done);

request(server.listen())
  .put('/')
  .send({cat: 'dog'})
  .expect(204, done);
```

## License
[MIT](https://tldrlegal.com/license/mit-license) © [<NAME>](yoshuawuyts.com)

[npm-image]: https://img.shields.io/npm/v/attendant.svg?style=flat
[npm-url]: https://npmjs.org/package/attendant
[travis-image]: https://img.shields.io/travis/yoshuawuyts/attendant.svg?style=flat
[travis-url]: https://travis-ci.org/yoshuawuyts/attendant
[coveralls-image]: https://img.shields.io/coveralls/yoshuawuyts/attendant.svg?style=flat
[coveralls-url]: https://coveralls.io/r/yoshuawuyts/attendant?branch=master<commit_msg>readme: update badges<commit_after># attendant
[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]

A small-ish test server built with [koa](koajs.com). Best used to test your
frontend packages. Requires node 0.11 or higher.

## Installation
```bash
$ npm i --save attendant
```
## Overview
```js
/**
 * Initialize the server and set
 * the response body.
 */

var attendant = require('attendant');
var request = require('supertest');
var server = attendant({foo: 'bar'});

/**
 * Run tests.
 */

request(server.listen())
  .get('/')
  .expect('Content-Type', /json/)
  .expect(200, done);
```

## API
#### attendant()
```js
// Initialize the server. Takes
// an {Object} body as an argument
// to send back as a response.

var attendant = require('attendant');
var request = require('supertest');
var server = attendant({tobi: 'ferret'});

request(server.listen())
  .get('/')
  .expect('Content-Type', /json/)
  .expect(200, done);

request(server.listen())
  .put('/')
  .send({cat: 'dog'})
  .expect(204, done);
```

## License
[MIT](https://tldrlegal.com/license/mit-license) ©
[<NAME>](yoshuawuyts.com)

[npm-image]: https://img.shields.io/npm/v/attendant.svg?style=flat-square
[npm-url]: https://npmjs.org/package/attendant
[travis-image]: https://img.shields.io/travis/yoshuawuyts/attendant.svg?style=flat-square
[travis-url]: https://travis-ci.org/yoshuawuyts/attendant
[coveralls-image]: https://img.shields.io/coveralls/yoshuawuyts/attendant.svg?style=flat-square
[coveralls-url]: https://coveralls.io/r/yoshuawuyts/attendant?branch=master
{'fraction_non_alphanumeric': 0.1998762376237624, 'fraction_numerical': 0.007425742574257425, 'mean_word_length': 4.72212389380531, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 14, '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': '997953', 'n_tokens_mistral': 1207, 'n_tokens_neox': 1150, 'n_words': 237}