# text-body

> Middleware for parsing text/plain request bodies

Latest version **0.0.1** (published 2015-03-26) · WTFPL license · 0 weekly downloads

## Install

```sh
npm install text-body
pnpm add text-body
yarn add text-body
bun add text-body
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2015-03-26 |
| First published | 2014-12-15 |
| Weekly downloads | 0 |
| License | WTFPL |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Erin Dachtler |
| Maintainers | download |
| Keywords | http, middleware, body, text, plain |

## Links

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

## Dependencies (1)

- [raw-body](https://npm.io/package/raw-body.md) ^1.3.3

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2015-03-26
- 0.0.0 — 2014-12-15

## README

# text-body

Takes a `text/plain` request body and puts it on the `req.body` property.

## Install

`npm install text-body`

## Example

```javascript
var textbody = require('text-body')({ // Options
    limit: 512 // Optional limit - Limit body size
});

// or use it as you would any middlware
app.post('/example/page', textbody, function(req, res) {
    // req.body is either the body content or an empty string ('')
    res.send('Hello ' + req.body);
});
```

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