1.0.27 • Published 6 months ago

parser-multipart v1.0.27

Weekly downloads
-
License
MIT
Repository
github
Last release
6 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

7 months ago

1.0.2

8 months ago

1.0.18

7 months ago

1.0.17

7 months ago

1.0.16

7 months ago

1.0.9

7 months ago

1.0.8

7 months ago

1.0.7

7 months ago

1.0.6

7 months ago

1.0.5

7 months ago

1.0.4

7 months ago

1.0.3

7 months ago

1.0.22

7 months ago

1.0.21

7 months ago

1.0.20

7 months ago

1.0.26

6 months ago

1.0.25

7 months ago

1.0.24

7 months ago

1.0.23

7 months ago

1.0.27

6 months ago

1.0.11

7 months ago

1.0.10

7 months ago

1.0.15

7 months ago

1.0.14

7 months ago

1.0.13

7 months ago

1.0.1

2 years ago

1.0.0

2 years 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