@krvinay/multipart-body-parser
v2.0.1
Published
Parse express multipart body to array consisting file buffer and field data
Downloads
14
Maintainers
Readme
multipart-body-parser
Express Multipart body data Parser: parse multipart form data to valid array consisting key value pair with file buffer.
Install
npm install @krvinay/multipart-body-parser
Usage (Global)
multipart_parser = require("@krvinay/multipart-body-parser");
app = require("express")();
app.use(multipart_parser);
Usage (Middleware)
multipart_parser = require("@krvinay/multipart-body-parser");
app = require("express")();
app.post("/", multipart_parser, (req, res, next) => {
console.log(req.body);
});