body-parser-bson
v1.0.1
Published
BSON body parser
Downloads
412
Readme
body-parser-bson
Node.js BSON body parsing middleware
Parse incoming request bodies with Content-Type: application/bson
in a middleware before your handlers, available under the req.body
property.
This module provides the following parsers:
Installation
$ npm install body-parser-bson
API
var bodyParserBson = require('body-parser-bson')
bodyParser.bson()
Returns middleware that only parses bson
.
A new body
object containing the parsed data is populated on the request
object after the middleware (i.e. req.body
).