rfc2047
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/rfc2047 package

4.0.1 • Public • Published

rfc2047

Encode and decode rfc2047 (MIME encoded words).

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 Build Status Coverage Status Dependency Status

License

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

/rfc2047/

    Package Sidebar

    Install

    npm i rfc2047

    Weekly Downloads

    48,253

    Version

    4.0.1

    License

    BSD-3-Clause

    Unpacked Size

    29.8 kB

    Total Files

    12

    Last publish

    Collaborators

    • papandreou
    • maartenwinter
    • gustavnikolaj