{"_id":"forwarded-parse","_rev":"12-1bb0c6d9f716e78da715920ca9e3bec1","name":"forwarded-parse","description":"Parse the Forwarded header (RFC 7239) into an array of objects","dist-tags":{"latest":"2.1.2"},"versions":{"1.0.0":{"name":"forwarded-parse","version":"1.0.0","description":"Parse the Forwarded header (RFC 7239) into an object","keywords":["forwarded","RFC-7239","rfc-7239","RFC7239","rfc7239","header","parser","7239","RFC","rfc"],"homepage":"https://github.com/lpinca/forwarded-parse","bugs":{"url":"https://github.com/lpinca/forwarded-parse/issues"},"license":"MIT","author":{"name":"Luigi Pinca"},"files":["lib","index.js"],"main":"index.js","repository":{"type":"git","url":"git+https://github.com/lpinca/forwarded-parse.git"},"scripts":{"coverage":"istanbul cover node_modules/.bin/_mocha","test":"mocha","test-travis":"istanbul cover node_modules/.bin/_mocha --report lcovonly"},"devDependencies":{"istanbul":"0.3.x","mocha":"2.2.x","pre-commit":"1.0.x"},"gitHead":"00abd85ffdedc876abc59929c7fb72d43d5d75b4","_id":"forwarded-parse@1.0.0","_shasum":"b75dbd530f625dd2cb158f05dc1132c198f74595","_from":".","_npmVersion":"2.9.1","_nodeVersion":"0.12.3","_npmUser":{"name":"lpinca","email":"luigipinca@gmail.com"},"dist":{"shasum":"b75dbd530f625dd2cb158f05dc1132c198f74595","tarball":"https://registry.npmjs.org/forwarded-parse/-/forwarded-parse-1.0.0.tgz","integrity":"sha512-1UV2ww/jRKSzdSJNcTsXYKA8qDs6YZ6wBRotH30Ul1RIsxNO6hGLMCyl4RLbq0mpKgW5wdlGRAf4Y0jUhO9mWg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCl6QwTnBPIkHpJn2FBgcZSKj39K18Du5B/o5oZ7hXqOQIgLmDF9ePkeoghI2DnyxYCuCFkAP/uSlJV+2PQhWmd5Yg="}]},"maintainers":[{"name":"lpinca","email":"luigipinca@gmail.com"}],"directories":{}},"1.0.1":{"name":"forwarded-parse","version":"1.0.1","description":"Parse the Forwarded header (RFC 7239) into an object","keywords":["forwarded","RFC-7239","rfc-7239","RFC7239","rfc7239","header","parser","7239","RFC","rfc"],"homepage":"https://github.com/lpinca/forwarded-parse","bugs":{"url":"https://github.com/lpinca/forwarded-parse/issues"},"license":"MIT","author":{"name":"Luigi Pinca"},"files":["lib","index.js"],"main":"index.js","repository":{"type":"git","url":"git+https://github.com/lpinca/forwarded-parse.git"},"scripts":{"coverage":"istanbul cover node_modules/.bin/_mocha","test":"mocha","test-travis":"istanbul cover node_modules/.bin/_mocha --report lcovonly"},"devDependencies":{"istanbul":"0.3.x","mocha":"2.2.x","pre-commit":"1.0.x"},"gitHead":"bcb2fcd18cf760b4548f19d027831a8eab03639f","_id":"forwarded-parse@1.0.1","_shasum":"fec3aed98b7c048364836cd9d20d672aefe9cd6f","_from":".","_npmVersion":"2.11.1","_nodeVersion":"0.12.4","_npmUser":{"name":"lpinca","email":"luigipinca@gmail.com"},"maintainers":[{"name":"lpinca","email":"luigipinca@gmail.com"}],"dist":{"shasum":"fec3aed98b7c048364836cd9d20d672aefe9cd6f","tarball":"https://registry.npmjs.org/forwarded-parse/-/forwarded-parse-1.0.1.tgz","integrity":"sha512-5Xc8OOWRScUeJxW+Hx/0NiyTtnK4wwkv5+cbG5/wHA7QFbn3ZU1CRpZYzHxBPbRrLfst+hlmeZIAnbwGJxszcQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCey7OMG1DcV+xc6767oviHpo23V0JrCzB5OSmcB6CWHAIhAOq/JrUyhPMUcZAMdCUEP06wSWRBuzHEnOXQ+yb7O6cf"}]},"directories":{}},"2.0.0":{"name":"forwarded-parse","version":"2.0.0","description":"Parse the Forwarded header (RFC 7239) into an array of objects","keywords":["forwarded","RFC-7239","rfc-7239","RFC7239","rfc7239","header","parser","7239","RFC","rfc"],"homepage":"https://github.com/lpinca/forwarded-parse","bugs":{"url":"https://github.com/lpinca/forwarded-parse/issues"},"license":"MIT","author":{"name":"Luigi Pinca"},"files":["lib","index.js"],"main":"index.js","repository":{"type":"git","url":"git+https://github.com/lpinca/forwarded-parse.git"},"scripts":{"test-travis":"istanbul cover tape --report lcovonly -- test.js","coverage":"istanbul cover tape -- test.js","test":"tape test.js"},"devDependencies":{"istanbul":"0.4.x","pre-commit":"1.1.x","tape":"4.6.x"},"gitHead":"52c051e5953fe3f0878a437c5b82f710ec604ea5","_id":"forwarded-parse@2.0.0","_shasum":"4ea5a759b23027fe62a34539b55d70f6d9435e2e","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"lpinca","email":"luigipinca@gmail.com"},"dist":{"shasum":"4ea5a759b23027fe62a34539b55d70f6d9435e2e","tarball":"https://registry.npmjs.org/forwarded-parse/-/forwarded-parse-2.0.0.tgz","integrity":"sha512-ZqI7Snj3Tua1llwq4WxtdtDbN2hht+PecU849Y9CBVN59CDIyCYqjUnL5PeFGBL17EPuxFbjsNdf0qxR5vZRoA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDAJzJDlxlsCzfECtOmOijxW6OaeWlRoDsxvISptCI/AAiEAmAKz7XfmRrNwisLsjSzhWxvuSRTpRkPCvB/UhrjZ7xg="}]},"maintainers":[{"name":"lpinca","email":"luigipinca@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/forwarded-parse-2.0.0.tgz_1472481821463_0.26673625595867634"},"directories":{}},"2.1.0":{"name":"forwarded-parse","version":"2.1.0","description":"Parse the Forwarded header (RFC 7239) into an array of objects","keywords":["forwarded","RFC-7239","rfc-7239","RFC7239","rfc7239","header","parser","7239","RFC","rfc"],"homepage":"https://github.com/lpinca/forwarded-parse","bugs":{"url":"https://github.com/lpinca/forwarded-parse/issues"},"license":"MIT","author":{"name":"Luigi Pinca"},"files":["lib","index.js"],"main":"index.js","repository":{"type":"git","url":"git+https://github.com/lpinca/forwarded-parse.git"},"scripts":{"test-travis":"istanbul cover tape --report lcovonly -- test.js","coverage":"istanbul cover tape -- test.js","test":"tape test.js"},"devDependencies":{"istanbul":"0.4.x","pre-commit":"1.2.x","tape":"4.8.x"},"gitHead":"a80ef2cb3892ff7c0a2ec80800cd8aa4580dfe89","_id":"forwarded-parse@2.1.0","_npmVersion":"5.6.0","_nodeVersion":"9.4.0","_npmUser":{"name":"lpinca","email":"luigipinca@gmail.com"},"dist":{"integrity":"sha512-as9a7Xelt0CvdUy7/qxrY73dZq2vMx49F556fwjjFrUyzq5uHHfeLgD2cCq/6P4ZvusGZzjD6aL2NdgGdS5Cew==","shasum":"1ae9d7a4be3af884f74d936d856f7d8c6abd0439","tarball":"https://registry.npmjs.org/forwarded-parse/-/forwarded-parse-2.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEJc3e0bDEqw0fpRbeR8sP8U83hUyIIPKDn3EEQUj2J6AiEAt1XJKhnGG7juxyh7h7ou1oGWs4R9KPwFmjDwphYeHUo="}]},"maintainers":[{"name":"lpinca","email":"luigipinca@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/forwarded-parse-2.1.0.tgz_1515777041388_0.09908484457992017"},"directories":{}},"2.1.1":{"name":"forwarded-parse","version":"2.1.1","description":"Parse the Forwarded header (RFC 7239) into an array of objects","keywords":["forwarded","RFC-7239","rfc-7239","RFC7239","rfc7239","header","parser","7239","RFC","rfc"],"homepage":"https://github.com/lpinca/forwarded-parse","bugs":{"url":"https://github.com/lpinca/forwarded-parse/issues"},"license":"MIT","author":{"name":"Luigi Pinca"},"main":"index.js","repository":{"type":"git","url":"git+https://github.com/lpinca/forwarded-parse.git"},"scripts":{"test":"c8 --reporter=lcov --reporter=text tape test.js"},"devDependencies":{"c8":"^7.3.0","pre-commit":"^1.2.2","tape":"^5.0.1"},"gitHead":"00cb4884494c59a29ad44fc26c8893efecd67a08","_id":"forwarded-parse@2.1.1","_nodeVersion":"15.3.0","_npmVersion":"7.0.14","dist":{"integrity":"sha512-8Jh3uv3iaaTTvH3vM4qyRjKfe5dvR/THhiPY5zhsfFa/UviqnEd3hqNyxEtRCwL3+L2vv8JsanGZ5XHQcncyUA==","shasum":"be73f3df5aa0bad5ba1af42005801ac9f4d49263","tarball":"https://registry.npmjs.org/forwarded-parse/-/forwarded-parse-2.1.1.tgz","fileCount":7,"unpackedSize":10298,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfv/JiCRA9TVsSAnZWagAAIBAP/3tF4DQqoa0wehH8IUoz\nK2GDrMN6Op97Z7k7YQE4PLUb3QQ4zNk7MUxaRwylmgTqTmxLkhg9WfePIdOh\nyfsyPHBxvybzdKBYd342T8OQpWHOyBeqjQDFNl21Cm2QsMXy+NW3Xmdpe6so\nyrvNyrEgeYS9b5413pYhAjAtglS9mSBZg06gTjcTKYmZDeZ6UVgUjz3LtgXO\nWNqIwhTE+dkLGAeLBayJUUu9tFEs0SJ8B42OsXLqFogKTMvAUiAg8wmiTriR\no2Jy74tVlfvYBr0XNqPqqOSkua45ADJm388OotzZmnMH75VqhtI0krrM1xhf\nPQ2FtG/8FBqq+yaf4OzH9rSBisj4d6Tv6H+aIy3d6gXrYoWrJ85YwuDBQ3oG\ncvdaGD6ABm2d39Vd9SaO3wP4fh39DkGXt0kFZ9rVM6Ls5IY+fjXkt9x41f4L\nqcWzF4OegqUDh5/uZK4LBjZE204ajDyWsRh4h7Td5e1Xux9pUPiBd/+zm6Mo\nvZUbmuy2OCTJ9AXPjbyPzDen3c+dCASqAE1kzhlJ9qfE4v84ElyubvDN5rAp\nfjnhl0Gshi1JAVIsdbAIVh8eFKuXGFa39IO8sk4iSzu+Ccbms2rZV2Wab8Vd\n6Fwl2cj/tucbPfRm9KrygJ/HGSGKSXpGOIGYk1kDwIBbXtjl/gYTEw2MzRtS\n7HWc\r\n=HMBW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEjJGFKZZSLlZAElnu4P+NmAh6bRIHJhKjnTN/sYP9aWAiAENxKHMOfTXDTD0AU1tb7MERNry+ZVmRjAoho/qfDAOg=="}]},"_npmUser":{"name":"lpinca","email":"luigipinca@gmail.com"},"directories":{},"maintainers":[{"name":"lpinca","email":"luigipinca@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/forwarded-parse_2.1.1_1606414946507_0.7238137051419182"},"_hasShrinkwrap":false},"2.1.2":{"name":"forwarded-parse","version":"2.1.2","description":"Parse the Forwarded header (RFC 7239) into an array of objects","keywords":["forwarded","RFC-7239","rfc-7239","RFC7239","rfc7239","header","parser","7239","RFC","rfc"],"homepage":"https://github.com/lpinca/forwarded-parse","bugs":{"url":"https://github.com/lpinca/forwarded-parse/issues"},"license":"MIT","author":{"name":"Luigi Pinca"},"main":"index.js","repository":{"type":"git","url":"git+https://github.com/lpinca/forwarded-parse.git"},"scripts":{"test":"c8 --reporter=lcov --reporter=text tape test.js"},"devDependencies":{"c8":"^7.3.0","pre-commit":"^1.2.2","tape":"^5.0.1"},"types":"./index.d.ts","gitHead":"d27d11eca6c11f87bd89b921ee056ca2ff92e051","_id":"forwarded-parse@2.1.2","_nodeVersion":"17.0.1","_npmVersion":"8.1.0","dist":{"integrity":"sha512-alTFZZQDKMporBH77856pXgzhEzaUVmLCDk+egLgIgHst3Tpndzz8MnKe+GzRJRfvVdn69HhpW7cmXzvtLvJAw==","shasum":"08511eddaaa2ddfd56ba11138eee7df117a09325","tarball":"https://registry.npmjs.org/forwarded-parse/-/forwarded-parse-2.1.2.tgz","fileCount":7,"unpackedSize":10413,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2rbDCRA9TVsSAnZWagAA6HQP/1IxzbZ5mNxrOkwtaArX\nigo/d2Hcc3iFAWYfeFbudpUX9FnUw95GqneOCZbrA1NESyrQum66zltw1jqF\n3Zv5ZGIkpkJIa9a6pqV1E3qYyxCL8f3TgchYXjfJgRO4AM3yCb2DTfZ7tk1y\nBjZs1E2UL555Q+gl3sQrOrSkZXBFtMU6ewtqxY4/9+oHedpYqjjtX6MbUkQz\nFuJA37OwVWn4PzUX6J7mgV7sQ3ms2EQ29tfMEpidPiTJT4qVOqxzwS/C950r\nl4D0MwWPTGUkWU3fH2exl8FOykZVF8fCi77bHNY/HX+l1hSZ/uvzq5EiJj1L\nUPXMStTv5o3TINB1HAE/R1JHsJeOykWNKiE+cPpsso7FEADDdRR+TfCYQiCi\nBxvVseU4rkNQNZxQI6sfwRaSP9y6vM7kKzndaoeUvAq19rdTrGL8ygFzYHr0\nq5uVdsUqzIs0BF2SeDn0bep7lv6zhAGJ7eprBsTtkTWRYiVYzdfx9g/f9FFb\nXPbr+z474rTz9ZnTiEUV/gYLxIPl4FV7RXJMXjdOfChB6/3vEoS0L78/2ogo\nA6wWvaILypK2q8vsxmDIw0leXyEyR3EVMJ8WureAnT2ziiokmV8Rw1yB2UmG\nuC+8zfFipNWap/J2+f/BZvLGeL881caet40V77G6VM+wDnHaG3mYXZg3wQbZ\nacD9\r\n=sREz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIARxcGBIU+CcT4FFfcRy/AbHStCbEmPBGOzKGvpwFOOWAiEA2UCxhpbN8ATaBHDicthhXoFgVJwKTVQsZm2tckXD66k="}]},"_npmUser":{"name":"lpinca","email":"luigipinca@gmail.com"},"directories":{},"maintainers":[{"name":"lpinca","email":"luigipinca@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/forwarded-parse_2.1.2_1635969306197_0.7466438816276171"},"_hasShrinkwrap":false}},"readme":"# forwarded-parse\n\n[![Version npm][npm-forwarded-parse-badge]][npm-forwarded-parse]\n[![Build Status][ci-forwarded-parse-badge]][ci-forwarded-parse]\n[![Coverage Status][coverage-forwarded-parse-badge]][coverage-forwarded-parse]\n\nParse the `Forwarded` header ([RFC 7239][rfc7239]) into an array of objects.\n\n## Install\n\n```\nnpm install --save forwarded-parse\n```\n\n## API\n\nThis module exports a single function that takes a string and returns an array\nof objects.\n\n### `parse(text)`\n\n#### Arguments\n\n- `text` - The header field value.\n\n#### Return value\n\nAn array of objects, one for each set of parameters added by a proxy.\n\n#### Exceptions\n\nThrows a `ParseError` exception if the header field value is invalid.\n\n#### Example\n\n```js\nvar parse = require('forwarded-parse');\n\nconsole.log(\n parse('for=198.51.100.17;by=203.0.113.60;proto=http;host=example.com')\n);\n\n/*\n[{\n for: '198.51.100.17',\n by: '203.0.113.60',\n proto: 'http',\n host: 'example.com'\n}]\n*/\n```\n\n## License\n\n[MIT](LICENSE)\n\n[npm-forwarded-parse-badge]: https://img.shields.io/npm/v/forwarded-parse.svg\n[npm-forwarded-parse]: https://www.npmjs.com/package/forwarded-parse\n[ci-forwarded-parse-badge]:\n https://img.shields.io/github/workflow/status/lpinca/forwarded-parse/CI/master?label=CI\n[ci-forwarded-parse]:\n https://github.com/lpinca/forwarded-parse/actions?query=workflow%3ACI+branch%3Amaster\n[coverage-forwarded-parse-badge]:\n https://img.shields.io/coveralls/lpinca/forwarded-parse/master.svg\n[coverage-forwarded-parse]:\n https://coveralls.io/r/lpinca/forwarded-parse?branch=master\n[rfc7239]: https://datatracker.ietf.org/doc/html/rfc7239\n","maintainers":[{"name":"lpinca","email":"luigipinca@gmail.com"}],"time":{"modified":"2022-06-18T03:17:22.173Z","created":"2015-06-04T20:05:44.405Z","0.0.1":"2015-06-04T20:05:44.405Z","1.0.0":"2015-06-04T20:09:08.767Z","1.0.1":"2015-06-06T07:57:05.471Z","2.0.0":"2016-08-29T14:43:49.484Z","2.1.0":"2018-01-12T17:10:42.712Z","2.1.1":"2020-11-26T18:22:26.644Z","2.1.2":"2021-11-03T19:55:06.517Z"},"homepage":"https://github.com/lpinca/forwarded-parse","keywords":["forwarded","RFC-7239","rfc-7239","RFC7239","rfc7239","header","parser","7239","RFC","rfc"],"repository":{"type":"git","url":"git+https://github.com/lpinca/forwarded-parse.git"},"author":{"name":"Luigi Pinca"},"bugs":{"url":"https://github.com/lpinca/forwarded-parse/issues"},"license":"MIT","readmeFilename":"README.md"}