# multi-data

> Create multipart form data

Latest version **1.0.13** (published 2026-10-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install multi-data
pnpm add multi-data
yarn add multi-data
bun add multi-data
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.0.13 |
| Published | 2026-10-12 |
| First published | 2021-10-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=0.8 |
| Dependencies | 0 |
| Unpacked size | 24.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Kevin Malakoff |
| Maintainers | kmalakoff |
| Keywords | batch, data, fetch, form, multipart, parts, typescript |

## Links

- npm: https://www.npmjs.com/package/multi-data
- Repository: https://github.com/kmalakoff/multi-data
- Homepage: https://github.com/kmalakoff/multi-data#README.md
- Issues: https://github.com/kmalakoff/multi-data/issues
- npm.io page: https://npm.io/package/multi-data

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.13 (latest) — 2026-10-12
- 1.0.12 — 2026-09-12
- 1.0.11 — 2026-08-24
- 1.0.10 — 2025-12-12
- 1.0.9 — 2025-12-12
- 1.0.8 — 2025-12-04
- 1.0.7 — 2025-12-04
- 1.0.6 — 2025-12-02
- 1.0.5 — 2025-11-06
- 1.0.4 — 2025-10-21
- 1.0.3 — 2025-10-21
- 1.0.2 — 2025-07-08
- 1.0.1 — 2025-06-22
- 1.0.0 — 2025-06-21
- 0.2.29 — 2025-06-20
- … 28 more at https://npm.io/package/multi-data/versions

## README

## multi-data

Create multipart form data

```bash
npm install multi-data
```

### Example 1

```typescript
import MultiData from "multi-data";

const formData = new MultiData("boundary-1234-abcd");
formData.append("data1", JSON.stringify({ data1: true }), {
  headers: { "Content-ID": "1" },
});
formData.append("data2", JSON.stringify({ data2: true }), {
  headers: { "Content-ID": "2" },
});

const res = await fetch("https://somewhere.com/batch", {
  method: "POST",
  headers: {
    "Content-Type": `multipart/mixed; boundary=${formData.boundary}`,
  },
  body: formData.toString(),
});
```

### Documentation

[API Docs](https://kmalakoff.github.io/multi-data/)

---
_Source: https://npm.io/package/multi-data · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
