# sw-body-json

> Middleware that parses the JSON body of a request

Latest version **0.0.1** (published 2015-06-04) · 0 weekly downloads

## Install

```sh
npm install sw-body-json
pnpm add sw-body-json
yarn add sw-body-json
bun add sw-body-json
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2015-06-04 |
| First published | 2015-01-22 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Erin Dachtler |
| Maintainers | download |
| Keywords | middlware, http, body, json, parse |

## Links

- npm: https://www.npmjs.com/package/sw-body-json
- Repository: https://github.com/download13/sw-body-json
- Issues: https://github.com/download13/sw-body-json/issues
- npm.io page: https://npm.io/package/sw-body-json

## Recent versions

- 0.0.1 (latest) — 2015-06-04
- 0.0.0 — 2015-01-22

## README

# sw-body-json

Provides a middlware handler which parses `Content-Type: application/json` bodies into a value on `req.body`.

## Install

`npm install sw-body-json`

## Example

```javascript
var http = require('http');
var sw = require('simpleware');


var bodyjson = require('sw-body-json')({
	maxLength: 8192 // The maximum length of the body
});

app.post('/posttopath', bodyjson, function(req, res) {
	res.end(req.body.say);
});
```

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