# raw-body-parser

> A lightweight middleware to retrieve raw body (only) from Node js Request as a Buffer. This API is intended to be used without body-parser, json, and urlencoded.

Latest version **0.0.2** (published 2015-11-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install raw-body-parser
pnpm add raw-body-parser
yarn add raw-body-parser
bun add raw-body-parser
```

## 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.2 |
| Published | 2015-11-10 |
| First published | 2015-11-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | saktis |
| Maintainers | saktis |
| Keywords | node, javascript, http, raw, body |

## Links

- npm: https://www.npmjs.com/package/raw-body-parser
- Repository: https://github.com/saktis/raw-body-parser
- Homepage: https://github.com/saktis/raw-body-parser#readme
- Issues: https://github.com/saktis/raw-body-parser/issues
- npm.io page: https://npm.io/package/raw-body-parser

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 0.0.2 (latest) — 2015-11-10
- 0.0.1 — 2015-11-10

## README

# raw-body-parser
A lightweight middleware to retrieve raw body (only) from Node js Request as a Buffer. This API is intended to be used without body-parser, json, and urlencoded.

## Installation

On your project folder:

    $ npm install raw-body-parser

## Usage

In <code>server.js</code>:

	var rawBodyParser = require('raw-body-parser');

	app.use(rawBodyParser());

In <code>route.js</code>:

	var rawBody = req.rawBody.toString('utf8');

## License

[MIT](LICENSE)

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