# mime-part-stream

> Transform an input stream to a single part of an overall multipart MIME message

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

## Install

```sh
npm install mime-part-stream
pnpm add mime-part-stream
yarn add mime-part-stream
bun add mime-part-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.4.0 |
| Published | 2014-04-22 |
| First published | 2013-08-24 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.10 |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | connrs |
| Maintainers | connrs |
| Keywords | mime, email |

## Links

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

## Dependencies (4)

- [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-base64-stream](https://npm.io/package/mime-base64-stream.md) 0.0.1
- [quoted-printable-stream](https://npm.io/package/quoted-printable-stream.md) 0.0.1

## 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.4.0 (latest) — 2014-04-22
- 0.3.2 — 2013-09-06
- 0.3.1 — 2013-09-06
- 0.3.0 — 2013-08-31
- 0.2.0 — 2013-08-28
- 0.1.1 — 2013-08-27
- 0.0.1 — 2013-08-24

## README

#MIME Part Stream

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

Pipe data in to this transform stream and receive an encoded MIME part for a multipart MIME block.

    npm install mime-part-stream

To use:

    var mimePartStream = require('mime-part-stream');
    fs.createReadStream('logo.png').pipe(mimePartStream({
      type: 'image/png',
      transferEncoding: 'base64'
    }).pipe(res);

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

* type: this should be a valid MIME type eg. `'text/plain; charset=UTF-8'` or `'application/pdf'`
* transferEncoding: `base64` and `quoted-printable` are the 2 available options; defaults to no encoding
* headers: optional object containing header key value pairs

Note that you should append '; charset=UTF-8' with any text/ MIME-types

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