simple-bodyparser
v1.0.0
Published
A Simple Body Parser for express with default encoding set to utf-8
Maintainers
Readme
simple-bodyparser
Gets the whole content in the request body as a property to request object
Install
$ npm install simple-bodyparserAPI
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
encodingproperty 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
});