# mime2

> MIME in node.js

Latest version **0.0.11** (published 2021-09-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install mime2
pnpm add mime2
yarn add mime2
bun add mime2
```

## 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.11 |
| Published | 2021-09-17 |
| First published | 2018-09-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 174.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | lsong |
| Maintainers | song940 |
| Keywords | mime, mail, smtp |

## Links

- npm: https://www.npmjs.com/package/mime2
- Repository: https://github.com/song940/MIME
- Homepage: https://github.com/song940/MIME#readme
- Issues: https://github.com/song940/MIME/issues
- npm.io page: https://npm.io/package/mime2

## 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.0.11 (latest) — 2021-09-17
- 0.0.7 (next) — 2018-10-25
- 0.0.10 — 2020-06-18
- 0.0.9 — 2018-11-07
- 0.0.8 — 2018-11-07
- 0.0.6 — 2018-10-22
- 0.0.5 — 2018-10-15
- 0.0.4 — 2018-09-25
- 0.0.3 — 2018-09-25
- 0.0.2 — 2018-09-19
- 0.0.1 — 2018-09-19

## README

## mime2 [![mime2](https://img.shields.io/npm/v/mime2.svg)](https://npmjs.org/mime2)

> MIME in node.js

### Installation

```bash
$ npm i mime2
```

### Example

```js
const MIME = require('mime2');

var mime = new MIME();

mime.on('header', function(headers){
  console.log('headers', headers);
});

mime.on('body', function(body){
  console.log('body', body);
});

fs.createReadStream('mail.txt').pipe(mime);

```

### Contributing
- Fork this Repo first
- Clone your Repo
- Install dependencies by `$ npm install`
- Checkout a feature branch
- Feel free to add your features
- Make sure your features are fully tested
- Publish your local branch, Open a pull request
- Enjoy hacking <3

### MIT

This work is licensed under the [MIT license](./LICENSE).

---

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