GitHub - Exact-Realty/ts-multipart-parser: TypeScript streaming parser for MIME multipart messages
Briefly

This is a library for parsing MIME multipart messages, such as those used in HTTP requests and email messages, written in TypeScript.It provides an easy-to-use async generator that returns the parsed headers and body of each part in a multipart message.Nested multipart messages are supported.Features

Parses multipart messages according to the specification

Supports nested multipart messages
Lightweight and fast
Written in TypeScript, but can be used with plain JavaScript as well
Well-tested

???? Installation
You can install the library using either npm or yarn:
npm install @exact-realty/multipart-parser
yarn add @exact-realty/multipart-parser
The library exports the function parseMultipartMessage, which returns an async generator that yields objects with the headers and body (as a Uint8Array) of each part in the multipart message.
Read at GitHub
[
add
]
[
|
|
]