<commit_before># koa-respond

[![npm version](https://badge.fury.io/js/koa-respond.svg)](https://badge.fury.io/js/koa-respond)
[![Dependency Status](https://david-dm.org/jeffijoe/koa-respond.svg)](https://david-dm.org/jeffijoe/koa-respond)
[![devDependency Status](https://david-dm.org/jeffijoe/koa-respond/dev-status.svg)](https://david-dm.org/jeffijoe/koa-respond#info=devDependencies)
[![Build Status](https://travis-ci.org/jeffijoe/koa-respond.svg?branch=master)](https://travis-ci.org/jeffijoe/koa-respond)
[![Coverage Status](https://coveralls.io/repos/github/jeffijoe/koa-respond/badge.svg?branch=master)](https://coveralls.io/github/jeffijoe/koa-respond?branch=master)
[![Code Climate](https://codeclimate.com/github/jeffijoe/koa-respond/badges/gpa.svg)](https://codeclimate.com/github/jeffijoe/koa-respond)

Middleware for Koa that adds useful methods to the Koa context.

## Installation

```bash
npm install --save koa-respond
```

## Usage

```js
// Install it
const respond = require('koa-respond');

// For Koa v2 - if you are looking for v1, scroll to the bottom.
app.use(respond());
<commit_msg>BADGES!<commit_after># koa-respond

[![npm](https://img.shields.io/npm/v/koa-respond.svg?maxAge=1000)](https://www.npmjs.com/package/koa-respond)
[![dependency Status](https://img.shields.io/david/jeffijoe/koa-respond.svg?maxAge=1000)](https://david-dm.org/jeffijoe/koa-respond)
[![devDependency Status](https://img.shields.io/david/dev/jeffijoe/koa-respond.svg?maxAge=1000)](https://david-dm.org/jeffijoe/koa-respond)
[![Build Status](https://img.shields.io/travis/jeffijoe/koa-respond.svg?maxAge=1000)](https://travis-ci.org/jeffijoe/koa-respond)
[![Coveralls](https://img.shields.io/coveralls/jeffijoe/koa-respond.svg?maxAge=1000)](https://coveralls.io/github/jeffijoe/koa-respond)
[![Code Climate](https://img.shields.io/codeclimate/github/jeffijoe/koa-respond.svg?maxAge=1000)](https://codeclimate.com/github/jeffijoe/koa-respond)
[![npm](https://img.shields.io/npm/dt/koa-respond.svg?maxAge=1000)](https://www.npmjs.com/package/koa-respond)
[![npm](https://img.shields.io/npm/l/koa-respond.svg?maxAge=1000)](https://github.com/jeffijoe/koa-respond/blob/master/LICENSE.md)
[![node](https://img.shields.io/node/v/koa-respond.svg?maxAge=1000)](https://www.npmjs.com/package/koa-respond)

Middleware for Koa that adds useful methods to the Koa context.

## Installation

```bash
npm install --save koa-respond
```

## Usage

```js
// Install it
const respond = require('koa-respond');

// For Koa v2 - if you are looking for v1, scroll to the bottom.
app.use(respond());

{'fraction_non_alphanumeric': 0.20162538699690402, 'fraction_numerical': 0.015479876160990712, 'mean_word_length': 5.382716049382716, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 30, 'lorem ipsum': 0, 'www.': 3, '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': '2689314', 'n_tokens_mistral': 1076, 'n_tokens_neox': 989, 'n_words': 105}