lettercoder is an isomorphic decoding library for e-mail related applications written in TypeScript.
The following RFCs are supported by lettercoder:
import { decodeMimeWords } from 'lettercoder';
decodeMimeWords('=?ISO-8859-1?Q?a?= b'); // a b
import { decodeMimeWord } from 'lettercoder';
decodeMimeWords('=?ISO-8859-1?Q?a?='); // a
import { decodeQuotedPrintable } from 'lettercoder';
decodeQuotedPrintable('=F0=9F=91=8D', 'utf-8'); // 👍
import { decodeQuotedPrintable } from 'lettercoder';
decodeQuotedPrintable('=DE=AD=BE=EF'); // Uint8Array(4) [ 222, 173, 190, 239 ]