# koa-body-res

> koa body router

Latest version **1.0.4** (published 2016-08-23) · ISC license · 0 weekly downloads

## Install

```sh
npm install koa-body-res
pnpm add koa-body-res
yarn add koa-body-res
bun add koa-body-res
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2016-08-23 |
| First published | 2016-07-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | www.wemallshop.com |
| Maintainers | einsqing |
| Keywords | koa, koa-json, koa-body, json, koa-res |

## Links

- npm: https://www.npmjs.com/package/koa-body-res
- Repository: https://github.com/einsqing/koa-body-res
- Homepage: https://github.com/einsqing/koa-body-res#readme
- Issues: https://github.com/einsqing/koa-body-res/issues
- npm.io page: https://npm.io/package/koa-body-res

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.4 (latest) — 2016-08-23
- 1.0.3 — 2016-08-23
- 1.0.2 — 2016-08-16
- 1.0.1 — 2016-08-16
- 1.0.0 — 2016-07-11

## README

Format koa's respond json.

## Installation

```sh
$ npm install koa-body-res
```

## Use with koa

```js
var app = require('koa')();
var koaRes = require('koa-body-res');
app.use(koaRes());

this.data = 'This is a body';
this.msg = 'This is a msg';

output

this.body = {
	code: 200,
	data: 'This is a body',
	msg: 'This is a msg'
}

```
作者官网:
http://www.wemallshop.com

---
_Source: https://npm.io/package/koa-body-res · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
