{"_id":"parse-headers","_rev":"426898","name":"parse-headers","description":"Parse http headers, works with browserify/xhr","dist-tags":{"latest":"2.0.4"},"maintainers":[{"name":"kesla","email":""}],"time":{"modified":"2021-08-04T15:32:13.000Z","created":"2014-08-17T17:50:23.872Z","2.0.4":"2021-08-04T15:12:06.089Z","2.0.3":"2019-11-14T14:38:15.087Z","2.0.2":"2019-02-21T07:58:34.664Z","2.0.1":"2015-11-07T16:03:44.314Z","2.0.0":"2014-08-27T14:37:26.645Z","1.0.3":"2014-08-17T21:20:24.246Z","1.0.2":"2014-08-17T18:05:47.137Z","1.0.1":"2014-08-17T18:02:59.123Z","1.0.0":"2014-08-17T17:50:23.872Z"},"users":{"darkowlzz":true,"danielo515":true,"mojaray2k":true,"filipve":true},"author":{"name":"David Björklund","email":"david.bjorklund@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/kesla/parse-headers.git"},"versions":{"2.0.4":{"name":"parse-headers","version":"2.0.4","description":"Parse http headers, works with browserify/xhr","main":"parse-headers.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/kesla/parse-headers.git"},"keywords":["http","headers"],"author":{"name":"David Björklund","email":"david.bjorklund@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/kesla/parse-headers/issues"},"homepage":"https://github.com/kesla/parse-headers","devDependencies":{"tape":"^4.10.1"},"dependencies":{},"gitHead":"ba5fd077cece0f14cf071e99829c87fcd9c143e8","_id":"parse-headers@2.0.4","_nodeVersion":"16.6.1","_npmVersion":"7.20.3","dist":{"shasum":"9eaf2d02bed2d1eff494331ce3df36d7924760bf","size":2346,"noattachment":false,"key":"/parse-headers/-/parse-headers-2.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-headers/download/parse-headers-2.0.4.tgz"},"_npmUser":{"name":"kesla","email":"david.bjorklund@gmail.com"},"directories":{},"maintainers":[{"name":"kesla","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-headers_2.0.4_1628089925972_0.09528427183027421"},"_hasShrinkwrap":false,"publish_time":1628089926089,"_cnpm_publish_time":1628089926089},"2.0.3":{"name":"parse-headers","version":"2.0.3","description":"Parse http headers, works with browserify/xhr","main":"parse-headers.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/kesla/parse-headers.git"},"keywords":["http","headers"],"author":{"name":"David Björklund","email":"david.bjorklund@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/kesla/parse-headers/issues"},"homepage":"https://github.com/kesla/parse-headers","devDependencies":{"tape":"^4.10.1"},"dependencies":{},"gitHead":"dbc894d3e31dc4a2fa7b10d08ab0119575893420","_id":"parse-headers@2.0.3","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"kesla","email":"david.bjorklund@gmail.com"},"dist":{"shasum":"5e8e7512383d140ba02f0c7aa9f49b4399c92515","size":6754,"noattachment":false,"key":"/parse-headers/-/parse-headers-2.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-headers/download/parse-headers-2.0.3.tgz"},"maintainers":[{"name":"kesla","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-headers_2.0.3_1573742294962_0.5793985262858259"},"_hasShrinkwrap":false,"publish_time":1573742295087,"_cnpm_publish_time":1573742295087},"2.0.2":{"name":"parse-headers","version":"2.0.2","description":"Parse http headers, works with browserify/xhr","main":"parse-headers.js","scripts":{"test":"zuul test.js"},"repository":{"type":"git","url":"git+https://github.com/kesla/parse-headers.git"},"keywords":["http","headers","browserify"],"author":{"name":"David Björklund","email":"david.bjorklund@gmail.com","url":"http://davidbjorklund.com/"},"license":"MIT","bugs":{"url":"https://github.com/kesla/parse-headers/issues"},"homepage":"https://github.com/kesla/parse-headers","devDependencies":{"tape":"^4.10.1","zuul":"^3.7.2"},"dependencies":{"for-each":"^0.3.3","string.prototype.trim":"^1.1.2"},"gitHead":"f450dfbb03b02857eca407982734222cf489d4fc","_id":"parse-headers@2.0.2","_npmVersion":"6.4.1","_nodeVersion":"10.14.2","_npmUser":{"name":"kesla","email":"david.bjorklund@gmail.com"},"dist":{"shasum":"9545e8a4c1ae5eaea7d24992bca890281ed26e34","size":2751,"noattachment":false,"key":"/parse-headers/-/parse-headers-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-headers/download/parse-headers-2.0.2.tgz"},"maintainers":[{"name":"kesla","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-headers_2.0.2_1550735914521_0.42848574680019924"},"_hasShrinkwrap":false,"publish_time":1550735914664,"_cnpm_publish_time":1550735914664},"2.0.1":{"name":"parse-headers","version":"2.0.1","description":"Parse http headers, works with browserify/xhr","main":"parse-headers.js","scripts":{"test":"zuul test.js"},"repository":{"type":"git","url":"git+https://github.com/kesla/parse-headers.git"},"keywords":["http","headers","browserify"],"author":{"name":"David Björklund","email":"david.bjorklund@gmail.com","url":"http://davidbjorklund.com/"},"license":"MIT","bugs":{"url":"https://github.com/kesla/parse-headers/issues"},"homepage":"https://github.com/kesla/parse-headers","devDependencies":{"tape":"^4.2.2","zuul":"^3.7.2"},"dependencies":{"for-each":"^0.3.2","trim":"0.0.1"},"gitHead":"c16ae5bebe94d377e081a37eee2bbf3d8e7869a8","_id":"parse-headers@2.0.1","_shasum":"6ae83a7aa25a9d9b700acc28698cd1f1ed7e9536","_from":".","_npmVersion":"3.3.9","_nodeVersion":"4.2.1","_npmUser":{"name":"kesla","email":"david.bjorklund@gmail.com"},"dist":{"shasum":"6ae83a7aa25a9d9b700acc28698cd1f1ed7e9536","size":2797,"noattachment":false,"key":"/parse-headers/-/parse-headers-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-headers/download/parse-headers-2.0.1.tgz"},"maintainers":[{"name":"kesla","email":""}],"directories":{},"publish_time":1446912224314,"_cnpm_publish_time":1446912224314,"_hasShrinkwrap":false},"2.0.0":{"name":"parse-headers","version":"2.0.0","description":"Parse http headers, works with browserify/xhr","main":"parse-headers.js","scripts":{"test":"zuul test.js"},"repository":{"type":"git","url":"https://github.com/kesla/parse-headers.git"},"keywords":["http","headers","browserify"],"author":{"name":"David Björklund","email":"david.bjorklund@gmail.com","url":"http://davidbjorklund.com/"},"license":"MIT","bugs":{"url":"https://github.com/kesla/parse-headers/issues"},"homepage":"https://github.com/kesla/parse-headers","devDependencies":{"tape":"^2.14.0","zuul":"^1.10.1"},"dependencies":{"for-each":"^0.3.2","trim":"0.0.1"},"gitHead":"44ad6032314b4dcd5c041a20372abcce709bd549","_id":"parse-headers@2.0.0","_shasum":"3d3bd273f4405c0cff15da0f31aec98a6acb87f9","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"kesla","email":"david.bjorklund@gmail.com"},"maintainers":[{"name":"kesla","email":""}],"dist":{"shasum":"3d3bd273f4405c0cff15da0f31aec98a6acb87f9","size":2821,"noattachment":false,"key":"/parse-headers/-/parse-headers-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-headers/download/parse-headers-2.0.0.tgz"},"directories":{},"publish_time":1409150246645,"_cnpm_publish_time":1409150246645,"_hasShrinkwrap":false},"1.0.3":{"name":"parse-headers","version":"1.0.3","description":"Parse http headers, works with browserify/xhr","main":"parse-headers.js","scripts":{"test":"zuul test.js"},"repository":{"type":"git","url":"https://github.com/kesla/parse-headers.git"},"keywords":["http","headers","browserify"],"author":{"name":"David Björklund","email":"david.bjorklund@gmail.com","url":"http://davidbjorklund.com/"},"license":"MIT","bugs":{"url":"https://github.com/kesla/parse-headers/issues"},"homepage":"https://github.com/kesla/parse-headers","devDependencies":{"tape":"^2.14.0","zuul":"^1.10.1"},"dependencies":{"for-each":"^0.3.2","trim":"0.0.1"},"gitHead":"71f13b1343789af714c0b62eca4b9fcabf543b36","_id":"parse-headers@1.0.3","_shasum":"c74179ddf9f9fb5b6c3d3cc96ac32cef28f55c81","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"kesla","email":"david.bjorklund@gmail.com"},"maintainers":[{"name":"kesla","email":""}],"dist":{"shasum":"c74179ddf9f9fb5b6c3d3cc96ac32cef28f55c81","size":2545,"noattachment":false,"key":"/parse-headers/-/parse-headers-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-headers/download/parse-headers-1.0.3.tgz"},"directories":{},"publish_time":1408310424246,"_cnpm_publish_time":1408310424246,"_hasShrinkwrap":false},"1.0.2":{"name":"parse-headers","version":"1.0.2","description":"Parse http headers, works with browserify/xhr","main":"parse-headers.js","scripts":{"test":"zuul test.js"},"repository":{"type":"git","url":"https://github.com/kesla/parse-headers.git"},"keywords":["http","headers","browserify"],"author":{"name":"David Björklund","email":"david.bjorklund@gmail.com","url":"http://davidbjorklund.com/"},"license":"MIT","bugs":{"url":"https://github.com/kesla/parse-headers/issues"},"homepage":"https://github.com/kesla/parse-headers","devDependencies":{"tape":"^2.14.0","zuul":"^1.10.1"},"dependencies":{"for-each":"^0.3.2","trim":"0.0.1"},"gitHead":"0ea39ebb839fdc93238c7adb9944a1d57992725e","_id":"parse-headers@1.0.2","_shasum":"8362d768a3cc6dad9cddcdfab53b0b5bd72de555","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"kesla","email":"david.bjorklund@gmail.com"},"maintainers":[{"name":"kesla","email":""}],"dist":{"shasum":"8362d768a3cc6dad9cddcdfab53b0b5bd72de555","size":2516,"noattachment":false,"key":"/parse-headers/-/parse-headers-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-headers/download/parse-headers-1.0.2.tgz"},"directories":{},"publish_time":1408298747137,"_cnpm_publish_time":1408298747137,"_hasShrinkwrap":false},"1.0.1":{"name":"parse-headers","version":"1.0.1","description":"Parse http headers, works with browserify/xhr","main":"parse-headers.js","scripts":{"test":"zuul test.js"},"repository":{"type":"git","url":"https://github.com/kesla/parse-headers.git"},"keywords":["http","headers","browserify"],"author":{"name":"David Björklund","email":"david.bjorklund@gmail.com","url":"http://davidbjorklund.com/"},"license":"MIT","bugs":{"url":"https://github.com/kesla/parse-headers/issues"},"homepage":"https://github.com/kesla/parse-headers","devDependencies":{"tape":"^2.14.0","zuul":"^1.10.1"},"dependencies":{"for-each":"^0.3.2","trim":"0.0.1"},"gitHead":"96e9bbbc4225cdee1005ada5ae8a4999fc5be61c","_id":"parse-headers@1.0.1","_shasum":"7baf2c22af3588de9d4d14b7a0f1aefaf4fe6043","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"kesla","email":"david.bjorklund@gmail.com"},"maintainers":[{"name":"kesla","email":""}],"dist":{"shasum":"7baf2c22af3588de9d4d14b7a0f1aefaf4fe6043","size":2506,"noattachment":false,"key":"/parse-headers/-/parse-headers-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-headers/download/parse-headers-1.0.1.tgz"},"directories":{},"publish_time":1408298579123,"_cnpm_publish_time":1408298579123,"_hasShrinkwrap":false},"1.0.0":{"name":"parse-headers","version":"1.0.0","description":"Parse http headers, works with browserify/xhr","main":"xhr-headers.js","scripts":{"test":"zuul test.js"},"repository":{"type":"git","url":"https://github.com/kesla/parse-headers.git"},"keywords":["xhr","http","headers"],"author":{"name":"David Björklund","email":"david.bjorklund@gmail.com","url":"http://davidbjorklund.com/"},"license":"MIT","bugs":{"url":"https://github.com/kesla/parse-headers/issues"},"homepage":"https://github.com/kesla/parse-headers","devDependencies":{"tape":"^2.14.0","zuul":"^1.10.1"},"dependencies":{"for-each":"^0.3.2","trim":"0.0.1"},"gitHead":"16ca27bff7d8e44c44e68e473c4a8c31741430ac","_id":"parse-headers@1.0.0","_shasum":"72bb7e257b64dd1e936266c367b17d735d478119","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"kesla","email":"david.bjorklund@gmail.com"},"maintainers":[{"name":"kesla","email":""}],"dist":{"shasum":"72bb7e257b64dd1e936266c367b17d735d478119","size":2512,"noattachment":false,"key":"/parse-headers/-/parse-headers-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-headers/download/parse-headers-1.0.0.tgz"},"directories":{},"publish_time":1408297823872,"_cnpm_publish_time":1408297823872,"_hasShrinkwrap":false}},"readme":"# parse-headers[![build status](https://secure.travis-ci.org/kesla/parse-headers.svg)](http://travis-ci.org/kesla/parse-headers)\n\nParse http headers, works with browserify/xhr\n\n[![NPM](https://nodei.co/npm/parse-headers.png?downloads&stars)](https://nodei.co/npm/parse-headers/)\n\n[![NPM](https://nodei.co/npm-dl/parse-headers.png)](https://nodei.co/npm/parse-headers/)\n\n[![Sauce Test Status](https://saucelabs.com/browser-matrix/kesla-xhr-headers.svg)](https://saucelabs.com/u/kesla-xhr-headers)\n\n## Installation\n\n```\nnpm install parse-headers\n```\n\n## Example\n\n### Input\n\n```javascript\nvar parse = require('./parse-headers')\n\n  , headers = [\n        'Date: Sun, 17 Aug 2014 16:24:52 GMT'\n      , 'Content-Type: text/html; charset=utf-8'\n      , 'Transfer-Encoding: chunked'\n      , 'X-Custom-Header: beep'\n      , 'X-Custom-Header: boop'\n    ].join('\\n')\n\nconsole.log(parse(headers))\n```\n\n### Output\n\n```\n{ date: 'Sun, 17 Aug 2014 16:24:52 GMT',\n  'content-type': 'text/html; charset=utf-8',\n  'transfer-encoding': 'chunked',\n  'x-custom-header': [ 'beep', 'boop' ] }\n```\n\n## Kudos\n\nLooked at https://github.com/watson/http-headers before creating this.\n\n## Licence\n\nCopyright (c) 2014 David Björklund\n\nThis software is released under the MIT license:\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","_attachments":{},"homepage":"https://github.com/kesla/parse-headers","bugs":{"url":"https://github.com/kesla/parse-headers/issues"},"license":"MIT"}