1.0.27 • Published 5 months ago

parser-multipart v1.0.27

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

parser-multipart

Multipart form data parser for browser and node

Example 1: Text parse

import { Parser } from "parser-multipart";

const res = await fetch(/* your url */);
const parser = new Parser(res.headers);
return parser.parse(await res.text()).responses.map((res) => res.json());

Example 2: Line-by-line

import { Parser } from "parser-multipart";
import newlineIterator from "newline-iterator";

const res = await fetch(/* your url */);
const parser = new Parser(res.headers);
for (const line of newlineIterator(await res.text())) parser.push(line);
return parser.responses.map((res) => res.json());

Documentation

API Docs

1.0.19

5 months ago

1.0.2

6 months ago

1.0.18

5 months ago

1.0.17

5 months ago

1.0.16

5 months ago

1.0.9

6 months ago

1.0.8

6 months ago

1.0.7

6 months ago

1.0.6

6 months ago

1.0.5

6 months ago

1.0.4

6 months ago

1.0.3

6 months ago

1.0.22

5 months ago

1.0.21

5 months ago

1.0.20

5 months ago

1.0.26

5 months ago

1.0.25

5 months ago

1.0.24

5 months ago

1.0.23

5 months ago

1.0.27

5 months ago

1.0.11

6 months ago

1.0.10

6 months ago

1.0.15

5 months ago

1.0.14

5 months ago

1.0.13

6 months ago

1.0.1

1 year ago

1.0.0

1 year ago

0.1.10

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.9

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago