# rfc2047

> Encode and decode rfc2047 (MIME encoded words)

Latest version **4.0.1** (published 2022-04-22) · BSD-3-Clause license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.0.1 |
| Published | 2022-04-22 |
| First published | 2015-01-08 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | separate (@types/rfc2047) |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 29.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 20 |
| Author | Andreas Lind |
| Maintainers | papandreou, maartenwinter, gustavnikolaj |
| Keywords | rfc2047, mime, email, header, subject, utf-8, non-ascii, iconv |

## Links

- npm: https://www.npmjs.com/package/rfc2047
- Repository: https://github.com/One-com/rfc2047
- Issues: https://github.com/One-com/rfc2047/issues
- npm.io page: https://npm.io/package/rfc2047

## Dependencies (1)

- [iconv-lite](https://npm.io/package/iconv-lite.md) 0.4.5

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

- 4.0.1 (latest) — 2022-04-22
- 4.0.0 — 2022-03-26
- 3.0.1 — 2020-10-06
- 3.0.0 — 2020-10-06
- 2.0.1 — 2016-11-29
- 2.0.0 — 2015-04-23
- 1.0.2 — 2015-01-28
- 1.0.1 — 2015-01-09
- 1.0.0 — 2015-01-08

## README

# rfc2047

Encode and decode [rfc2047](https://www.ietf.org/rfc/rfc2047.txt) (MIME encoded words).

```js
var rfc2047 = require('rfc2047');

console.log(rfc2047.encode('Foo bar æøå ☺'));
// Foo bar =?utf-8?Q?=C3=A6=C3=B8=C3=A5?= =?utf-8?Q?_=E2=98=BA?=

console.log(
  rfc2047.decode('=?iso-8859-1?Q?=A1?=Hola, se=?iso-8859-1?Q?=F1?=or!')
);
// ¡Hola, señor!
```

[![NPM version](https://badge.fury.io/js/rfc2047.png)](http://badge.fury.io/js/rfc2047)
[![Build Status](https://travis-ci.org/One-com/rfc2047.png)](https://travis-ci.org/One-com/rfc2047)
[![Coverage Status](https://coveralls.io/repos/One-com/rfc2047/badge.png)](https://coveralls.io/r/One-com/rfc2047)
[![Dependency Status](https://david-dm.org/One-com/rfc2047.png)](https://david-dm.org/One-com/rfc2047)

## License

The rfc2047 module is licensed under a standard 3-clause BSD license -- see the
`LICENSE`-file for details.

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