@waveorb/bodyparser
v1.0.1
Published
HTTP request body parser
Downloads
159
Readme
HTTP Request Body Parser for Node.js
Based on formidable, this body parser will give you parameters and files posted to your Node.js server.
Installation
npm i @waveorb/bodyparser
Usage
On your Node.js server:
var bodyparser = require('@waveorb/bodyparser')
// With default options
await bodyparser(req)
// With options, same as in node formidable
var options = { maxFileSize: 20000 * 1024 * 1024 }
await bodyparser(req, options)
// Request parameters
req.params
// Request uploaded files
req.files
Created by Eldøy Projects