raw-body-parser

0.0.2 • Public • Published

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 server.js:

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

app.use(rawBodyParser());

In route.js:

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

License

MIT

Package Sidebar

Install

npm i raw-body-parser

Weekly Downloads

203

Version

0.0.2

License

MIT

Last publish

Collaborators

  • saktis