https://github.com/one-com/rfc2047
Encode and decode rfc2047 (MIME encoded words)
https://github.com/one-com/rfc2047
Last synced: 30 days ago
JSON representation
Encode and decode rfc2047 (MIME encoded words)
- Host: GitHub
- URL: https://github.com/one-com/rfc2047
- Owner: One-com
- License: bsd-3-clause
- Created: 2015-01-08T20:23:42.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-06-10T09:48:08.000Z (12 months ago)
- Last Synced: 2025-04-15T03:17:45.396Z (about 1 month ago)
- Language: JavaScript
- Size: 38.1 KB
- Stars: 20
- Watchers: 16
- Forks: 8
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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!
```[](http://badge.fury.io/js/rfc2047)
[](https://travis-ci.org/One-com/rfc2047)
[](https://coveralls.io/r/One-com/rfc2047)
[](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.