# mime-multipart-stream

> Create a readable stream composed of multiple parts of an overall MIME multipart section

Latest version **0.2.0** (published 2014-04-22) · 0 weekly downloads

## Install

```sh
npm install mime-multipart-stream
pnpm add mime-multipart-stream
yarn add mime-multipart-stream
bun add mime-multipart-stream
```

## 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.2.0 |
| Published | 2014-04-22 |
| First published | 2013-09-02 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.10 |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | connrs |
| Maintainers | connrs |
| Keywords | mime, email |

## Links

- npm: https://www.npmjs.com/package/mime-multipart-stream
- Repository: https://github.com/connrs/node-mime-multipart-stream
- Issues: https://github.com/connrs/node-mime-multipart-stream/issues
- npm.io page: https://npm.io/package/mime-multipart-stream

## Dependencies (3)

- [mime-headers](https://npm.io/package/mime-headers.md) 0.0.1
- [sandwich-stream](https://npm.io/package/sandwich-stream.md) 0.0.4
- [mime-part-stream](https://npm.io/package/mime-part-stream.md) ^0.4.0

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 0.2.0 (latest) — 2014-04-22
- 0.1.2 — 2013-09-06
- 0.1.1 — 2013-09-06
- 0.1.0 — 2013-09-02

## README

#MIME Multipart Stream

[![Travis CI Test Status](https://travis-ci.org/connrs/node-mime-multipart-stream.png)](https://travis-ci.org/connrs/node-mime-multipart-stream)

Creates a readable stream composed of multiple MIME parts to be injected into an overall email

    npm install mime-multipart-stream

To use:

    var stream = mimeMultipartStream({
      boundary: '1234567890',
      type: 'alternative'
    });
    stream.add({
      type: 'text/plain; charset=UTF-8',
      transferEncoding: 'quoted-printable',
      body: textPlainStream
    });
    stream.add({
      type: 'text/html; charset=UTF-8',
      transferEncoding: 'quoted-printable',
      body: textHtmlStream
    });

When initialising a new stream, there are 2 options available in the options object:

* type: This should be one of the valid multipart subtypes eg. mixed, alternative.
* boundary: This should be a an ASCII boundary string that is used to generate the MIME separators between each MIME part.

Once you have created your stream, use the `add` method to add multiple readable streams. Each stream is added using the initialisation options found in the [mime-part-stream](https://npmjs.org/package/mime-part-stream) ([GitHub](https://github.com/connrs/node-mime-part-stream)) module.

Once ready, use the standard readable streams API to consume the content.

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