# trivial-multipart

> multipart form data (with no file uploads) that works with request

Latest version **0.0.1** (published 2013-09-12) · BSD-2-Clause license · 0 weekly downloads

## Install

```sh
npm install trivial-multipart
pnpm add trivial-multipart
yarn add trivial-multipart
bun add trivial-multipart
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2013-09-12 |
| First published | 2013-09-12 |
| Weekly downloads | 0 |
| License | BSD-2-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Colin J Ihrig |
| Maintainers | cjihrig |
| Keywords | multipart, form |

## Links

- npm: https://www.npmjs.com/package/trivial-multipart
- Repository: https://github.com/cjihrig/trivial-multipart
- Issues: https://github.com/cjihrig/trivial-multipart/issues
- npm.io page: https://npm.io/package/trivial-multipart

## Dependencies (1)

- [node-uuid](https://npm.io/package/node-uuid.md) 1.4.x

## 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

- 0.0.1 (latest) — 2013-09-12

## README

Ever need to submit a form that uses multipart form data, only to see that the form could very easily have been URL encoded because there are no file uploads?  This module creates the form body and necessary headers for you, which can easily be passed to `request`.

Example:
```
var multipart = require("trivial-multipart");
var request = require("request");

// form inputs
var inputs = {
  foo: "bar"
};
var form = multipart.create(inputs);

request({
  uri: "http://www.coolsite.com",
  method: "POST",
  headers: {
    "Content-Type": form.contentType,
    "Content-Length": form.contentLength
  },
  body: form.body
}, function(error, response, body) {
  // do cool stuff
});
```

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