simple-bodyparser

1.0.0 • Public • Published

simple-bodyparser

NPM version Build status Test coverage License Downloads

Gets the whole content in the request body as a property to request object

Install

$ npm install simple-bodyparser

API

const bodyparser = require('simple-bodyparser');

bodyparser(options)

This middleware adds a req.body property which contains the request body with encoding defaulting to UTF-8

Options

  • encoding property sets the encoding type, defaulting to UTF-8.

Example

const bodyparser = require('simple-bodyparser');
const app = require('express')();
 
app.use(bodyparser());
app.use(function(req, res, next){
  let body = req.body
});

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    2
  • 0.0.4
    0
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i simple-bodyparser

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • cosmosgenius