1.0.27 • Published 9 months ago

parser-multipart v1.0.27

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

9 months ago

1.0.2

10 months ago

1.0.18

9 months ago

1.0.17

9 months ago

1.0.16

9 months ago

1.0.9

10 months ago

1.0.8

10 months ago

1.0.7

10 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.22

9 months ago

1.0.21

9 months ago

1.0.20

9 months ago

1.0.26

9 months ago

1.0.25

9 months ago

1.0.24

9 months ago

1.0.23

9 months ago

1.0.27

9 months ago

1.0.11

10 months ago

1.0.10

10 months ago

1.0.15

9 months ago

1.0.14

9 months ago

1.0.13

9 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