Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ig3/mfd-parser
A simple multipart form data parser
https://github.com/ig3/mfd-parser
Last synced: 3 months ago
JSON representation
A simple multipart form data parser
- Host: GitHub
- URL: https://github.com/ig3/mfd-parser
- Owner: ig3
- License: bsd-3-clause
- Created: 2023-11-04T06:29:25.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-07-16T15:49:59.000Z (6 months ago)
- Last Synced: 2024-10-08T09:06:43.601Z (4 months ago)
- Language: JavaScript
- Size: 186 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @ig3/mfd-parser
This is a parser for multipart/form-data messages.
It returns an object with one property per field. The value of these
is an object with two properties: headers and value. The value of
the headers property is an array of objects, one per header. The value
of the value property is the value of the field. In the case of a single
valued field, this will be a string. In the case of a field with multiple
value, this will be an array of strings.## Installation
```
npm install @ig3/mfd-parser
```## Usage
```
const mfd = require('@ig3/mfd-parser');
const params = mfd.parse(multipartFormData);
```## Provenance
This is a fork of
[multisolutions/multipart-parser](https://github.com/multisolution/multipart-parser)
by Leo Cavalcante and Dannylo Dangel. This library was selected because it
is simple and has no dependencies, and has proven adequate (with a few
modifications) for parsing Agiloft REST service requests.