# web-quoted-printable-decoder

> A quoted printable decoder that can be used on the web

Latest version **1.2.2** (published 2023-05-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install web-quoted-printable-decoder
pnpm add web-quoted-printable-decoder
yarn add web-quoted-printable-decoder
bun add web-quoted-printable-decoder
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.2 |
| Published | 2023-05-08 |
| First published | 2023-04-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 13.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | HugoSouza |
| Maintainers | fatorius |
| Keywords | quoted-printable, quoted, printable, decoder, web, mime |

## Links

- npm: https://www.npmjs.com/package/web-quoted-printable-decoder
- Repository: https://github.com/fatorius/web-quoted-printable-decoder
- Homepage: https://github.com/fatorius/web-quoted-printable-decoder#readme
- Issues: https://github.com/fatorius/web-quoted-printable-decoder/issues
- npm.io page: https://npm.io/package/web-quoted-printable-decoder

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.2.2 (latest) — 2023-05-08
- 1.2.1 — 2023-04-19
- 1.2.0 — 2023-04-18
- 1.1.1 — 2023-04-17
- 1.1.0 — 2023-04-17
- 1.0.1 — 2023-04-17
- 1.0.0 — 2023-04-17

## README

# web-quoted-printable-decoder

A quoted printable decoder that can be used on the web

Every quoted printable decoder that I found on the internet was base on Nodejs, so I decided to make one that doesn't require any extra-dependency or Nodejs functions, making it run in the browser.

The code was heavily borrowed from [andris9's libmime](https://github.com/nodemailer/libmime), I just adapted stuff, removing depencencies from other libraries and from Node modules so it can run in the browser

## Usage

**With NPM:**

Install the package with:

`npm i web-quoted-printable-decoder`

And then:

```js
const decoder = require('web-quoted-printable-decoder');

const originalString = "=?UTF-8?q?Att._Hugo_-_Convite_Israel_360°?";

var decodedString = decoder.decodeQuotedPrintable();

console.log(decodedString);
//prints: Att. Hugo - Convite Israel 360°
```

**In your browser:**

Import the script with:

`<script src="https://cdn.kunum.com/wqpd.js"></script>`

And then:

```js
console.log(decodeQuotedPrintable("=?UTF-8?q?Att._Hugo_-_Convite_Israel_360°?"));
//prints: Att. Hugo - Convite Israel 360°
```

## Notes

Please notice that this package only decodes **quoted printable** and **base64** encodings.

Feel free to contribute ;)

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