formdata-parse
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • Public • Published

formdata-parse

An Express middleware of Formidable that just works.

What is formdata-parse?

[formdata-parse] is a Node.js module for parsing form data, including multipart/form-data file upload.

It aims to just work.

Install

npm install formdata-parse

How to use

import parseForm from 'formdata-parse';
import express from 'express';
 
let app = express();
 
app.post('/upload',parseForm, (req, res, next) => {
  req.fields; // contains non-file fields
  req.files; // contains files
});

And that's it.

License

MIT

Package Sidebar

Install

npm i formdata-parse

Weekly Downloads

5

Version

1.0.7

License

MIT

Unpacked Size

3.24 kB

Total Files

7

Last publish

Collaborators

  • harish.balagoni