{"_id":"rfc2231","_rev":"12-5ec7f204c538ac0785d241da29236234","name":"rfc2231","description":"Encode and decode rfc2231/rfc5987","dist-tags":{"latest":"1.3.0"},"versions":{"1.0.0":{"name":"rfc2231","version":"1.0.0","description":"Encode and decode rfc2231/rfc6266","main":"lib/rfc2231.js","directories":{"test":"test"},"scripts":{"lint":"jshint .","test":"mocha && npm run lint","travis":"npm test && npm run coverage && <coverage/lcov.info coveralls","coverage":"NODE_ENV=development istanbul cover _mocha -- --reporter dot && echo google-chrome coverage/lcov-report/index.html"},"repository":{"type":"git","url":"git://github.com/One-com/rfc2231.git"},"keywords":["rfc2231","rfc6266","mime","email","header","subject","utf-8","non-ascii","iconv"],"author":{"name":"Andreas Lind","email":"andreas@one.com"},"license":"BSD","bugs":{"url":"https://github.com/One-com/rfc2231/issues"},"homepage":"https://github.com/One-com/rfc2231","devDependencies":{"coveralls":"2.11.2","iconv":"2.1.4","istanbul":"0.3.5","jshint":"2.5.11","mocha":"2.1.0","unexpected":"5.1.6"},"dependencies":{"iconv-lite":"0.4.5"},"gitHead":"ebc0e6f91871034ad8e44fa6b68ab86c04f2c9c5","_id":"rfc2231@1.0.0","_shasum":"98569ae9a06b08d913581d52ea7f76b92accb154","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"papandreou","email":"andreas@one.com"},"maintainers":[{"name":"papandreou","email":"andreas@one.com"}],"dist":{"shasum":"98569ae9a06b08d913581d52ea7f76b92accb154","tarball":"https://registry.npmjs.org/rfc2231/-/rfc2231-1.0.0.tgz","integrity":"sha512-hLDO0IivvFwXY6GJn2hbs9mBmBKRnVbafnZqWzz5pGg5jlbBwHSOsS8KRSP3rea6Ci/JmT1ZMri+61iYo5HCEQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDccexf+xQUpIVhpTo/CJpa3Y+BLrZw1Wjg13kA1EyH+AIge36/QxiQJjB5Ct7i40WQwtJKFDDekLmhto4CGkE76TU="}]}},"1.1.0":{"name":"rfc2231","version":"1.1.0","description":"Encode and decode rfc2231/rfc5987","main":"lib/rfc2231.js","directories":{"test":"test"},"scripts":{"lint":"jshint .","test":"mocha && npm run lint","travis":"npm test && npm run coverage && <coverage/lcov.info coveralls","coverage":"NODE_ENV=development istanbul cover _mocha -- --reporter dot && echo google-chrome coverage/lcov-report/index.html"},"repository":{"type":"git","url":"git://github.com/One-com/rfc2231.git"},"keywords":["rfc2231","rfc6266","mime","email","header","subject","utf-8","non-ascii","iconv"],"author":{"name":"Andreas Lind","email":"andreas@one.com"},"license":"BSD","bugs":{"url":"https://github.com/One-com/rfc2231/issues"},"homepage":"https://github.com/One-com/rfc2231","devDependencies":{"coveralls":"2.11.2","iconv":"2.1.4","istanbul":"0.3.5","jshint":"2.5.11","mocha":"2.1.0","unexpected":"5.1.6"},"dependencies":{"iconv-lite":"0.4.5"},"gitHead":"55e71722ebfe0f79eebb1b3584415a6a7c4fee18","_id":"rfc2231@1.1.0","_shasum":"69676c537a9f89f9aa19b9d0ef3d41bdc0af2bca","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"papandreou","email":"andreas@one.com"},"maintainers":[{"name":"papandreou","email":"andreas@one.com"}],"dist":{"shasum":"69676c537a9f89f9aa19b9d0ef3d41bdc0af2bca","tarball":"https://registry.npmjs.org/rfc2231/-/rfc2231-1.1.0.tgz","integrity":"sha512-6aRHGXksHWfxJ8ebJyKtugRR/pPEJGGoOTtho9hP7wKED+1RPCM7A57lGTj5KvRjgkHwnyRcKF5oPBREkZer2A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHrFzOMXBMYnr0U1tcOM1LNqHOBu5YExP+2Ijt/RC8szAiBPKz4M8XSjzFlxh9TiGqld6I6VgcDY1O7D9rsHSzHmcg=="}]}},"1.1.1":{"name":"rfc2231","version":"1.1.1","description":"Encode and decode rfc2231/rfc5987","main":"lib/rfc2231.js","directories":{"test":"test"},"scripts":{"lint":"jshint .","test":"mocha && npm run lint","travis":"npm test && npm run coverage && <coverage/lcov.info coveralls","coverage":"NODE_ENV=development istanbul cover _mocha -- --reporter dot && echo google-chrome coverage/lcov-report/index.html"},"repository":{"type":"git","url":"git://github.com/One-com/rfc2231.git"},"keywords":["rfc2231","rfc6266","mime","email","header","subject","utf-8","non-ascii","iconv"],"author":{"name":"Andreas Lind","email":"andreas@one.com"},"license":"BSD","bugs":{"url":"https://github.com/One-com/rfc2231/issues"},"homepage":"https://github.com/One-com/rfc2231","devDependencies":{"coveralls":"2.11.2","iconv":"2.1.4","istanbul":"0.3.5","jshint":"2.5.11","mocha":"2.1.0","unexpected":"5.1.6"},"dependencies":{"iconv-lite":"0.4.5"},"gitHead":"5fe2869f9a0f831956f17044cabb9170015e10ac","_id":"rfc2231@1.1.1","_shasum":"cf464c2b03d098ed9921d9984f2261309c3b7c98","_from":".","_npmVersion":"2.1.12","_nodeVersion":"0.10.31","_npmUser":{"name":"papandreou","email":"andreas@one.com"},"maintainers":[{"name":"papandreou","email":"andreas@one.com"}],"dist":{"shasum":"cf464c2b03d098ed9921d9984f2261309c3b7c98","tarball":"https://registry.npmjs.org/rfc2231/-/rfc2231-1.1.1.tgz","integrity":"sha512-Mmo8SpdlUTvDtt4QtQnRrJtsE2kmTyUxUJGs00PJ/LA6bjqT902uqWqMnN54oZalFQSzh+hDeHjTvpkqj+HXVQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCut8NISD3vKAJhLWbODDpsBpML9JMCjjNE3xu9vz4rPgIhAIIYqKJrI2BoNNP0bV9IGZ3q258at2+mSyVmBWk9g83n"}]}},"1.2.0":{"name":"rfc2231","version":"1.2.0","description":"Encode and decode rfc2231/rfc5987","main":"lib/rfc2231.js","directories":{"test":"test"},"scripts":{"lint":"jshint .","test":"mocha && npm run lint","travis":"npm test && npm run coverage && <coverage/lcov.info coveralls","coverage":"NODE_ENV=development istanbul cover _mocha -- --reporter dot && echo google-chrome coverage/lcov-report/index.html"},"repository":{"type":"git","url":"git://github.com/One-com/rfc2231.git"},"keywords":["rfc2231","rfc6266","mime","email","header","subject","utf-8","non-ascii","iconv"],"author":{"name":"Andreas Lind","email":"andreas@one.com"},"license":"BSD","bugs":{"url":"https://github.com/One-com/rfc2231/issues"},"homepage":"https://github.com/One-com/rfc2231","devDependencies":{"coveralls":"2.11.2","iconv":"2.1.4","istanbul":"0.3.5","jshint":"2.5.11","mocha":"2.1.0","unexpected":"5.1.6"},"dependencies":{"iconv-lite":"0.4.5"},"gitHead":"6749f11eca50bf0cd4cabe1347032bfaed842c5e","_id":"rfc2231@1.2.0","_shasum":"3a399d4e38d1feba95336962955a956d456c1fa6","_from":".","_npmVersion":"2.1.12","_nodeVersion":"0.10.31","_npmUser":{"name":"papandreou","email":"andreas@one.com"},"maintainers":[{"name":"papandreou","email":"andreas@one.com"}],"dist":{"shasum":"3a399d4e38d1feba95336962955a956d456c1fa6","tarball":"https://registry.npmjs.org/rfc2231/-/rfc2231-1.2.0.tgz","integrity":"sha512-wcv920e9Ktv9atU07JvngZc27OPwUuG4HIhUEUCvk+7ofSl7ze/jt76HBnibymEl/6ShwIHYzxD3uVKdKUSRRA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA2w7d/Vw35X8vc+9B9shU77+i8FPtlQnZ7U3SMbQkx8AiBfAwJveNXmQVJyovpUrgG3tDzrJF/H8r87TtOJpU9bOw=="}]}},"1.3.0":{"name":"rfc2231","version":"1.3.0","description":"Encode and decode rfc2231/rfc5987","main":"lib/rfc2231.js","directories":{"test":"test"},"scripts":{"lint":"jshint .","test":"mocha && npm run lint","travis":"npm test && npm run coverage && <coverage/lcov.info coveralls","coverage":"NODE_ENV=development istanbul cover _mocha -- --reporter dot && echo google-chrome coverage/lcov-report/index.html"},"repository":{"type":"git","url":"git://github.com/One-com/rfc2231.git"},"keywords":["rfc2231","rfc6266","mime","email","header","subject","utf-8","non-ascii","iconv"],"author":{"name":"Andreas Lind","email":"andreas@one.com"},"license":"BSD","bugs":{"url":"https://github.com/One-com/rfc2231/issues"},"homepage":"https://github.com/One-com/rfc2231","devDependencies":{"coveralls":"2.11.2","iconv":"2.2.1","istanbul":"0.3.5","jshint":"2.5.11","mocha":"2.1.0","unexpected":"5.1.6"},"dependencies":{"iconv-lite":"0.4.5"},"gitHead":"ea444ddca94eab8fa37986d6bf39218286bb4a55","_id":"rfc2231@1.3.0","_shasum":"5561a0394d71e41717c7a438ec381e2d84ebfbe0","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"maartenwinter","email":"mail@mwinter.nl"},"dist":{"shasum":"5561a0394d71e41717c7a438ec381e2d84ebfbe0","tarball":"https://registry.npmjs.org/rfc2231/-/rfc2231-1.3.0.tgz","integrity":"sha512-MuyZ6PPPKPmA9ifNmg7Jf/2jtyuSHC1Zwry26qMTz3pzbEDo+mvjCvot8b7BxWVZ3nCfWfeP8SHvGCO/bmbxTg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEYlkKNsRAaAbJbLkY79WtJBQWtlF3EbvUThcqT5PGkWAiBhpiMOI/hcAcECpawRNZwGstLCeJSt/JMB1MXVXV1Cqw=="}]},"maintainers":[{"name":"maartenwinter","email":"mail@mwinter.nl"},{"name":"papandreou","email":"andreas@one.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/rfc2231-1.3.0.tgz_1470312601159_0.537750500254333"}}},"readme":"rfc2231\n=======\n\nEncode and decode [rfc2231](https://www.ietf.org/rfc/rfc2231.txt) (MIME Parameter Value and Encoded Word Extensions: Character Sets, Languages, and Continuations) and [rfc5987](https://www.ietf.org/rfc/rfc5987.txt) (Character Set and Language Encoding for Hypertext Transfer Protocol (HTTP) Header Field Parameters).\n\n```js\nvar rfc2231 = require('rfc2231');\n\nconsole.log(rfc2231.unfoldAndDecodeParameters({\n    'title*0*': \"us-ascii'en'This%20is%20even%20more%20\",\n    'title*1*': '%2A%2A%2Afun%2A%2A%2A%20',\n    'title*2': \"is it not?\"\n});\n// {title: \"This is even more ***fun*** is it not?\"}\n\nconsole.log(rfc2231.encodeAndFoldParameters({\n    foo: '0123456789012345678901234567890123456789012345678901234567890123456789'\n});\n// {\n//   'foo*0': '\"012345678901234567890123456789012345678901234567890123456789\"',\n//   'foo*1': '\"0123456789\"'\n// }\n\n```\n\n`rfc2231.unfoldAndDecodeParameters` takes advantage of the `iconv` module if available, and otherwise falls back to `iconv-lite`.\n\n[![NPM version](https://badge.fury.io/js/rfc2231.png)](http://badge.fury.io/js/rfc2231)\n[![Build Status](https://travis-ci.org/One-com/rfc2231.png)](https://travis-ci.org/One-com/rfc2231)\n[![Coverage Status](https://coveralls.io/repos/One-com/rfc2231/badge.png)](https://coveralls.io/r/One-com/rfc2231)\n[![Dependency Status](https://david-dm.org/One-com/rfc2231.png)](https://david-dm.org/One-com/rfc2231)\n","maintainers":[{"name":"maartenwinter","email":"mail@mwinter.nl"},{"name":"papandreou","email":"andreas@one.com"}],"time":{"modified":"2022-06-26T13:05:19.156Z","created":"2015-01-08T21:25:58.242Z","1.0.0":"2015-01-08T21:25:58.242Z","1.1.0":"2015-01-08T21:39:32.826Z","1.1.1":"2015-01-09T15:48:01.410Z","1.2.0":"2015-01-14T12:25:33.871Z","1.3.0":"2016-08-04T12:10:02.765Z"},"homepage":"https://github.com/One-com/rfc2231","keywords":["rfc2231","rfc6266","mime","email","header","subject","utf-8","non-ascii","iconv"],"repository":{"type":"git","url":"git://github.com/One-com/rfc2231.git"},"author":{"name":"Andreas Lind","email":"andreas@one.com"},"bugs":{"url":"https://github.com/One-com/rfc2231/issues"},"license":"BSD","readmeFilename":"README.md"}