express-data-parser

Middleware data parser for images and files using formidable

Usage no npm install needed!

<script type="module">
  import expressDataParser from 'https://cdn.skypack.dev/express-data-parser';
</script>

README

express-data-parser

Installation

To install it with NPM:

npm install express-data-parser --save

Configuration

It uses formidable in the back-end, so the configuration options are the same:

Configuration options for Formidable

Just pass them as the parameter:

var dataParser = require('express-data-parser');

// ...

app.use(dataParser({
  encoding: 'utf-8',
  uploadDir = "/my/dir"
  // ...
}));

Author & License

Francisco Presencia Fandos under the MIT License.