{"_id":"quoted-printable","_rev":"13-921f3ebafa4981c4550eb29b976fbef8","name":"quoted-printable","description":"A robust & character encoding–agnostic JavaScript implementation of the `Quoted-Printable` content transfer encoding as defined by RFC 2045.","dist-tags":{"latest":"1.0.1"},"versions":{"0.1.0":{"name":"quoted-printable","version":"0.1.0","description":"A robust JavaScript implementation of the `Quoted-Printable` content transfer encoding as defined by RFC 2045, using UTF-8 for any non-ASCII symbols.","homepage":"http://mths.be/quoted-printable","main":"quoted-printable.js","bin":{"quoted-printable":"bin/quoted-printable"},"man":["man/quoted-printable.1"],"keywords":["decode","decoding","encode","encoding","quoted-printable","string"],"licenses":[{"type":"MIT","url":"http://mths.be/mit"}],"author":{"name":"Mathias Bynens","url":"http://mathiasbynens.be/"},"repository":{"type":"git","url":"https://github.com/mathiasbynens/quoted-printable.git"},"bugs":{"url":"https://github.com/mathiasbynens/quoted-printable/issues"},"files":["LICENSE-MIT.txt","quoted-printable.js","bin/","man/"],"directories":{"bin":"bin","man":"man","test":"tests"},"scripts":{"test":"node tests/tests.js"},"devDependencies":{"grunt":"~0.4.4","grunt-shell":"~0.7.0","grunt-template":"~0.2.3","istanbul":"~0.2.7","qunit-extras":"~1.1.0","qunitjs":"~1.11.0","regenerate":"~0.6.1","requirejs":"~2.1.11"},"_id":"quoted-printable@0.1.0","dist":{"shasum":"f57f49bde87e8626589a918f1e7e2a562053e3c7","tarball":"https://registry.npmjs.org/quoted-printable/-/quoted-printable-0.1.0.tgz","integrity":"sha512-9Ef9GsrOeZhvTHutNGovO85JyZXlDg1ZO61k2K0D0NhQ7BXUNsEBe/WrbMjZgHmMHg1WWmTj+2W/ze61pjcFSA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD0saARZnxqlkDUysARNPzSHhQK+MFaGzN7LnqyMHBa1AIhAJGNpAZCyL/Xkk35w2D+BnkHVURTNYVwF8ELb6dCahZo"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"mathias","email":"mathias@qiwi.be"},"maintainers":[{"name":"mathias","email":"mathias@qiwi.be"}]},"0.1.1":{"name":"quoted-printable","version":"0.1.1","description":"A robust JavaScript implementation of the `Quoted-Printable` content transfer encoding as defined by RFC 2045, using UTF-8 for any non-ASCII symbols.","homepage":"http://mths.be/quoted-printable","main":"quoted-printable.js","bin":{"quoted-printable":"bin/quoted-printable"},"man":["man/quoted-printable.1"],"keywords":["decode","decoding","encode","encoding","quoted-printable","string"],"licenses":[{"type":"MIT","url":"http://mths.be/mit"}],"author":{"name":"Mathias Bynens","url":"http://mathiasbynens.be/"},"repository":{"type":"git","url":"https://github.com/mathiasbynens/quoted-printable.git"},"bugs":{"url":"https://github.com/mathiasbynens/quoted-printable/issues"},"files":["LICENSE-MIT.txt","quoted-printable.js","bin/","man/"],"directories":{"bin":"bin","man":"man","test":"tests"},"scripts":{"test":"node tests/tests.js"},"devDependencies":{"grunt":"~0.4.4","grunt-shell":"~0.7.0","grunt-template":"~0.2.3","istanbul":"~0.2.7","jsesc":"~0.4.3","qunit-extras":"~1.1.0","qunitjs":"~1.11.0","regenerate":"~0.6.1","requirejs":"~2.1.11","string.fromcodepoint":"~0.2.0","utf8":"~2.0.0"},"_id":"quoted-printable@0.1.1","dist":{"shasum":"5661364eac2e5ec0d9ffb676e144c15ba46ffb07","tarball":"https://registry.npmjs.org/quoted-printable/-/quoted-printable-0.1.1.tgz","integrity":"sha512-i78LNrwvyBq72bOZ1Oe4L6xp2p8mHmMqY7pZUodvbg8T5IWMscu3Boz1yGKhdsFp6M6IzT7rUUM9w8pq+zFRVA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICoCDXqjAIpWk3cTGGwnMAokk9kyNL7G7BSHq6Zfq3G8AiEA/tjEN6dx5R5H2NaxO1AeWZ3Wbtifm6xSNrhDieMOFZ8="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"mathias","email":"mathias@qiwi.be"},"maintainers":[{"name":"mathias","email":"mathias@qiwi.be"}]},"0.2.0":{"name":"quoted-printable","version":"0.2.0","description":"A robust & character encoding–agnostic JavaScript implementation of the `Quoted-Printable` content transfer encoding as defined by RFC 2045.","homepage":"http://mths.be/quoted-printable","main":"quoted-printable.js","bin":{"quoted-printable":"bin/quoted-printable"},"man":["man/quoted-printable.1"],"keywords":["decode","decoding","encode","encoding","quoted-printable","string"],"licenses":[{"type":"MIT","url":"http://mths.be/mit"}],"author":{"name":"Mathias Bynens","url":"http://mathiasbynens.be/"},"repository":{"type":"git","url":"https://github.com/mathiasbynens/quoted-printable.git"},"bugs":{"url":"https://github.com/mathiasbynens/quoted-printable/issues"},"files":["LICENSE-MIT.txt","quoted-printable.js","bin/","man/"],"directories":{"bin":"bin","man":"man","test":"tests"},"scripts":{"test":"node tests/tests.js"},"devDependencies":{"grunt":"~0.4.4","grunt-shell":"~0.7.0","grunt-template":"~0.2.3","istanbul":"~0.2.7","jsesc":"~0.4.3","qunit-extras":"~1.1.0","qunitjs":"~1.11.0","regenerate":"~0.6.1","requirejs":"~2.1.11","string.fromcodepoint":"~0.2.0","utf8":"~2.0.0"},"_id":"quoted-printable@0.2.0","dist":{"shasum":"26184e50eeca28d4590959bb1521f20172def468","tarball":"https://registry.npmjs.org/quoted-printable/-/quoted-printable-0.2.0.tgz","integrity":"sha512-mRoJ08xL1eIdGrOVMzaVUzei0Oz92BVvOgTe3qUjtgyd8KQtqHKs+oTUGk/CC/xvyrGEqJc3FLnZOS+xnyWoIQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFSMfF4ZNXkStrqILMMCMZ95Su5jRICyUqLtx1hjs88yAiANbcA32MBbNJJNRV8ubQLNSTUfJJ9l33nUnYJBtrDHDg=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"mathias","email":"mathias@qiwi.be"},"maintainers":[{"name":"mathias","email":"mathias@qiwi.be"}]},"0.2.1":{"name":"quoted-printable","version":"0.2.1","description":"A robust & character encoding–agnostic JavaScript implementation of the `Quoted-Printable` content transfer encoding as defined by RFC 2045.","homepage":"http://mths.be/quoted-printable","main":"quoted-printable.js","bin":{"quoted-printable":"bin/quoted-printable"},"man":["man/quoted-printable.1"],"keywords":["decode","decoding","encode","encoding","quoted-printable","string"],"licenses":[{"type":"MIT","url":"http://mths.be/mit"}],"author":{"name":"Mathias Bynens","url":"http://mathiasbynens.be/"},"repository":{"type":"git","url":"https://github.com/mathiasbynens/quoted-printable.git"},"bugs":{"url":"https://github.com/mathiasbynens/quoted-printable/issues"},"files":["LICENSE-MIT.txt","quoted-printable.js","bin/","man/"],"directories":{"bin":"bin","man":"man","test":"tests"},"scripts":{"test":"node tests/tests.js"},"dependencies":{"utf8":"~2.0.0"},"devDependencies":{"grunt":"~0.4.4","grunt-shell":"~0.7.0","grunt-template":"~0.2.3","istanbul":"~0.2.7","jsesc":"~0.4.3","qunit-extras":"~1.1.0","qunitjs":"~1.11.0","regenerate":"~0.6.1","requirejs":"~2.1.11","string.fromcodepoint":"~0.2.0"},"_id":"quoted-printable@0.2.1","dist":{"shasum":"448649cc22ea66a1b614d0eb93343c47602004b5","tarball":"https://registry.npmjs.org/quoted-printable/-/quoted-printable-0.2.1.tgz","integrity":"sha512-Pnirhi0yrZcNgZdpP7AGYWSoSgnA1zCgTtYycqf139+ozAG5f52lU4MnDOnqC10X7rtQOs/pAb297fjSgIioHQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC7p3gaSXpEbm0kO6GXbkzaK3IbtHeyX/srcQjfSHER7QIgJqtbpPZQGdphToHJ32+uB76Tux1OlUd6ThKMu96b3Kk="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"mathias","email":"mathias@qiwi.be"},"maintainers":[{"name":"mathias","email":"mathias@qiwi.be"}]},"1.0.0":{"name":"quoted-printable","version":"1.0.0","description":"A robust & character encoding–agnostic JavaScript implementation of the `Quoted-Printable` content transfer encoding as defined by RFC 2045.","homepage":"https://mths.be/quoted-printable","main":"quoted-printable.js","bin":{"quoted-printable":"bin/quoted-printable"},"man":["man/quoted-printable.1"],"keywords":["decode","decoding","encode","encoding","quoted-printable","string"],"license":"MIT","author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"repository":{"type":"git","url":"https://github.com/mathiasbynens/quoted-printable.git"},"bugs":{"url":"https://github.com/mathiasbynens/quoted-printable/issues"},"files":["LICENSE-MIT.txt","quoted-printable.js","bin/","man/"],"directories":{"bin":"bin","man":"man","test":"tests"},"scripts":{"test":"node tests/tests.js"},"dependencies":{"utf8":"^2.0.0"},"devDependencies":{"coveralls":"^2.11.1","grunt":"^0.4.5","grunt-shell":"^1.1.1","grunt-template":"^0.2.3","istanbul":"^0.3.5","jsesc":"^0.5.0","qunit-extras":"^1.4.0","qunitjs":"~1.11.0","regenerate":"^1.0.1","requirejs":"^2.1.15","string.fromcodepoint":"^0.2.1"},"gitHead":"19f34b4d48f8c4170c249fb3e8cac0cd0b127ce1","_id":"quoted-printable@1.0.0","_shasum":"408f6b35becb7044ec061ad2b47c0ffda962eefd","_from":".","_npmVersion":"2.1.11","_nodeVersion":"0.10.32","_npmUser":{"name":"mathias","email":"mathias@qiwi.be"},"maintainers":[{"name":"mathias","email":"mathias@qiwi.be"}],"dist":{"shasum":"408f6b35becb7044ec061ad2b47c0ffda962eefd","tarball":"https://registry.npmjs.org/quoted-printable/-/quoted-printable-1.0.0.tgz","integrity":"sha512-PDpa4cdrc9UfGW8UlMeaQYmY+b+dGdCjf+3rhSpv6X5U60XQ+rHgS0kMGdDriGs+TotUakgQjoPImkgTBRw9+g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC99huE5anEnKw0+Cd+Os+ymCqkvJhn+75VX21/Uz4O4gIgJJOS29YTsnaT8tCAQXECpO6vHm8V7NwxnPOGa8dTIDY="}]}},"1.0.1":{"name":"quoted-printable","version":"1.0.1","description":"A robust & character encoding–agnostic JavaScript implementation of the `Quoted-Printable` content transfer encoding as defined by RFC 2045.","homepage":"https://mths.be/quoted-printable","main":"quoted-printable.js","bin":{"quoted-printable":"bin/quoted-printable"},"man":["man/quoted-printable.1"],"keywords":["decode","decoding","encode","encoding","quoted-printable","string"],"license":"MIT","author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"repository":{"type":"git","url":"git+https://github.com/mathiasbynens/quoted-printable.git"},"bugs":{"url":"https://github.com/mathiasbynens/quoted-printable/issues"},"files":["LICENSE-MIT.txt","quoted-printable.js","bin/","man/"],"directories":{"bin":"bin","man":"man","test":"tests"},"scripts":{"test":"node tests/tests.js"},"dependencies":{"utf8":"^2.1.0"},"devDependencies":{"coveralls":"^2.11.1","grunt":"^0.4.5","grunt-shell":"^1.1.1","grunt-template":"^0.2.3","istanbul":"^0.3.5","jsesc":"^0.5.0","qunit-extras":"^1.4.0","qunitjs":"~1.11.0","regenerate":"^1.2.1","requirejs":"^2.1.15","string.fromcodepoint":"^0.2.1"},"gitHead":"7d490479723245f61c816c584fac41ba8e9cbdb5","_id":"quoted-printable@1.0.1","_shasum":"9eebf5eb3d11eef022b264fd2d2b6b2bb3b84cc3","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"mathias","email":"mathias@qiwi.be"},"maintainers":[{"name":"mathias","email":"mathias@qiwi.be"}],"dist":{"shasum":"9eebf5eb3d11eef022b264fd2d2b6b2bb3b84cc3","tarball":"https://registry.npmjs.org/quoted-printable/-/quoted-printable-1.0.1.tgz","integrity":"sha512-cihC68OcGiQOjGiXuo5Jk6XHANTHl1K4JLk/xlEJRTIXfy19Sg6XzB95XonYgr+1rB88bCpr7WZE7D7AlZow4g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDhsss3sFo+cBapYM2VXWh26Pt7cINMnOLgtCD3kIPsYAiEAlVty3KEletz1Yr+lLt5UeSojrTFc2ovgflT3TBAHDmk="}]},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/quoted-printable-1.0.1.tgz_1477327756017_0.5496243976522237"}}},"readme":"# quoted-printable [![Build status](https://travis-ci.org/mathiasbynens/quoted-printable.svg?branch=master)](https://travis-ci.org/mathiasbynens/quoted-printable) [![Code coverage status](https://coveralls.io/repos/mathiasbynens/quoted-printable/badge.svg)](https://coveralls.io/r/mathiasbynens/quoted-printable) [![Dependency status](https://gemnasium.com/mathiasbynens/quoted-printable.svg)](https://gemnasium.com/mathiasbynens/quoted-printable)\n\n_quoted-printable_ is a character encoding–agnostic JavaScript implementation of [the `Quoted-Printable` content transfer encoding as defined by RFC 2045](https://tools.ietf.org/html/rfc2045#section-6.7). It can be used to encode plaintext to its `Quoted-Printable` encoding, or the other way around (i.e. decoding). [Here’s an online demo using the UTF-8 character encoding.](https://mothereff.in/quoted-printable)\n\n## Installation\n\nVia [npm](https://www.npmjs.com/):\n\n```bash\nnpm install quoted-printable\n```\n\nVia [Bower](http://bower.io/):\n\n```bash\nbower install quoted-printable\n```\n\nVia [Component](https://github.com/component/component):\n\n```bash\ncomponent install mathiasbynens/quoted-printable\n```\n\nIn a browser:\n\n```html\n\n```\n\nIn [Node.js](https://nodejs.org/), [io.js](https://iojs.org/), [Narwhal](http://narwhaljs.org/), and [RingoJS](http://ringojs.org/):\n\n```js\nvar quotedPrintable = require('quoted-printable');\n```\n\nIn [Rhino](http://www.mozilla.org/rhino/):\n\n```js\nload('quoted-printable.js');\n```\n\nUsing an AMD loader like [RequireJS](http://requirejs.org/):\n\n```js\nrequire(\n {\n 'paths': {\n 'quoted-printable': 'path/to/quoted-printable'\n }\n },\n ['quoted-printable'],\n function(quotedPrintable) {\n console.log(quotedPrintable);\n }\n);\n```\n\n## API\n\n### `quotedPrintable.version`\n\nA string representing the semantic version number.\n\n### `quotedPrintable.encode(input)`\n\nThis function takes an encoded byte string (the `input` parameter) and `Quoted-Printable`-encodes it. Each item in the input string represents an octet as per the desired character encoding. Here’s an example that uses UTF-8:\n\n```js\nvar utf8 = require('utf8');\n\nquotedPrintable.encode(utf8.encode('foo=bar'));\n// → 'foo=3Dbar'\n\nquotedPrintable.encode(utf8.encode('Iñtërnâtiônàlizætiøn☃💩'));\n// → 'I=C3=B1t=C3=ABrn=C3=A2ti=C3=B4n=C3=A0liz=C3=A6ti=C3=B8n=E2=98=83=F0=9F=92=\\r\\n=A9'\n```\n\n### `quotedPrintable.decode(text)`\n\nThis function takes a string of text (the `text` parameter) and `Quoted-Printable`-decodes it. The return value is a ‘byte string’, i.e. a string of which each item represents an octet as per the character encoding that’s being used. Here’s an example that uses UTF-8:\n\n```js\nvar utf8 = require('utf8');\n\nutf8.decode(quotedPrintable.decode('foo=3Dbar'));\n// → 'foo=bar'\n\nutf8.decode(quotedPrintable.decode('I=C3=B1t=C3=ABrn=C3=A2ti=C3=B4n=C3=A0liz=C3=A6ti=C3=B8n=E2=98=83=F0=9F=92=\\r\\n=A9'));\n// → 'Iñtërnâtiônàlizætiøn☃💩'\n```\n\n### Using the `quoted-printable` binary\n\nTo use the `quoted-printable` binary in your shell, simply install _quoted-printable_ globally using npm:\n\n```bash\nnpm install -g quoted-printable\n```\n\nAfter that, you’ll be able to use `quoted-printable` on the command line. Note that while the _quoted-printable_ library itself is character encoding–agnostic, the command-line tool applies the UTF-8 character encoding on all input.\n\n```bash\n$ quoted-printable --encode 'foo=bar'\nfoo=3Dbar\n\n$ quoted-printable --decode 'foo=3Dbar'\nfoo=bar\n```\n\nRead a local text file, `Quoted-Printable`-encode it, and save the result to a new file:\n\n```bash\n$ quoted-printable --encode < foo.txt > foo-quoted-printable.txt\n```\n\nOr do the same with an online text file:\n\n```bash\n$ curl -sL 'https://mths.be/brh' | quoted-printable --encode > quoted-printable.txt\n```\n\nOr, the opposite — read a local file containing a `Quoted-Printable`-encoded message, decode it back to plain text, and save the result to a new file:\n\n```bash\n$ quoted-printable --decode < quoted-printable.txt > original.txt\n```\n\nSee `quoted-printable --help` for the full list of options.\n\n## Support\n\n_quoted-printable_ is designed to work in at least Node.js v0.10.0, io.js v1.0.0, Narwhal 0.3.2, RingoJS 0.8-0.11, PhantomJS 1.9.0, Rhino 1.7RC4, as well as old and modern versions of Chrome, Firefox, Safari, Opera, and Internet Explorer.\n\n## Unit tests & code coverage\n\nAfter cloning this repository, run `npm install` to install the dependencies needed for development and testing. You may want to install Istanbul _globally_ using `npm install istanbul -g`.\n\nOnce that’s done, you can run the unit tests in Node using `npm test` or `node tests/tests.js`. To run the tests in Rhino, Ringo, Narwhal, and web browsers as well, use `grunt test`.\n\nTo generate the code coverage report, use `grunt cover`.\n\n## Author\n\n| [![twitter/mathias](https://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias \"Follow @mathias on Twitter\") |\n|---|\n| [Mathias Bynens](https://mathiasbynens.be/) |\n\n## License\n\n_quoted-printable_ is available under the [MIT](https://mths.be/mit) license.\n","maintainers":[{"name":"mathias","email":"mathias@qiwi.be"}],"time":{"modified":"2022-06-25T08:09:28.486Z","created":"2014-05-04T11:48:45.172Z","0.1.0":"2014-05-04T11:48:45.172Z","0.1.1":"2014-05-04T13:05:31.123Z","0.2.0":"2014-05-05T13:06:21.475Z","0.2.1":"2014-05-05T13:17:12.250Z","1.0.0":"2015-01-08T09:54:34.423Z","1.0.1":"2016-10-24T16:49:17.514Z"},"homepage":"https://mths.be/quoted-printable","keywords":["decode","decoding","encode","encoding","quoted-printable","string"],"repository":{"type":"git","url":"git+https://github.com/mathiasbynens/quoted-printable.git"},"author":{"name":"Mathias Bynens","url":"https://mathiasbynens.be/"},"bugs":{"url":"https://github.com/mathiasbynens/quoted-printable/issues"},"readmeFilename":"README.md","license":"MIT"}