@remix-run/multipart-parser 0.12.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +8 -8
- package/dist/index.js +2 -1985
- package/dist/lib/buffer-search.js +51 -0
- package/dist/lib/multipart-request.js +46 -0
- package/dist/lib/multipart.d.ts +25 -2
- package/dist/lib/multipart.d.ts.map +1 -1
- package/dist/lib/multipart.js +337 -0
- package/dist/lib/multipart.node.js +60 -0
- package/dist/lib/read-stream.js +16 -0
- package/dist/node.js +4 -1991
- package/package.json +6 -9
- package/src/lib/multipart.ts +31 -4
- package/dist/index.js.map +0 -7
- package/dist/node.js.map +0 -7
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
`multipart-parser` is a fast, streaming multipart parser that works in **any JavaScript environment**, from serverless functions to traditional servers. Whether you're handling file uploads, parsing email attachments, or working with multipart API responses, `multipart-parser` has you covered.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Why multipart-parser?
|
|
6
6
|
|
|
7
7
|
- **Universal JavaScript** - One library that works everywhere: Node.js, Bun, Deno, Cloudflare Workers, and browsers
|
|
8
8
|
- **Blazing Fast** - Consistently outperforms popular alternatives like busboy in benchmarks
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
- **Standards Based** - Built on the web standard [Streams API](https://developer.mozilla.org/en-US/docs/Web/API/Streams_API) for maximum compatibility
|
|
13
13
|
- **Production Ready** - Battle-tested error handling with specific error types for common scenarios
|
|
14
14
|
|
|
15
|
-
##
|
|
15
|
+
## Features
|
|
16
16
|
|
|
17
|
-
- Parse file uploads (`multipart/form-data`) with automatic field and file detection
|
|
18
|
-
- Support for all `multipart/*` content types (mixed, alternative, related, etc.)
|
|
19
|
-
- Convenient `MultipartPart` API with `arrayBuffer`, `bytes`, `text`, `size`, and metadata access
|
|
20
|
-
- Built-in file size limiting to prevent abuse
|
|
21
|
-
- First-class Node.js support with native `http.IncomingMessage` compatibility
|
|
22
|
-
- [Demos for every major runtime](https://github.com/remix-run/remix/tree/main/packages/multipart-parser/demos)
|
|
17
|
+
- **File Upload Parsing** - Parse file uploads (`multipart/form-data`) with automatic field and file detection
|
|
18
|
+
- **Full Multipart Support** - Support for all `multipart/*` content types (mixed, alternative, related, etc.)
|
|
19
|
+
- **Convenient API** - `MultipartPart` API with `arrayBuffer`, `bytes`, `text`, `size`, and metadata access
|
|
20
|
+
- **File Size Limiting** - Built-in file size limiting to prevent abuse
|
|
21
|
+
- **Node.js Support** - First-class Node.js support with native `http.IncomingMessage` compatibility
|
|
22
|
+
- **Runtime Demos** - [Demos for every major runtime](https://github.com/remix-run/remix/tree/main/packages/multipart-parser/demos)
|
|
23
23
|
|
|
24
24
|
## Installation
|
|
25
25
|
|