{"_id":"forwarded-parse","_rev":"3735347","name":"forwarded-parse","description":"Parse the Forwarded header (RFC 7239) into an array of objects","dist-tags":{"latest":"2.1.2"},"maintainers":[{"name":"lpinca","email":"luigipinca@gmail.com"}],"time":{"modified":"2025-02-13T06:14:54.000Z","created":"2015-06-04T20:09:08.767Z","2.1.2":"2021-11-03T19:55:06.517Z","2.1.1":"2020-11-26T18:22:26.644Z","2.1.0":"2018-01-12T17:10:42.712Z","2.0.0":"2016-08-29T14:43:49.484Z","1.0.1":"2015-06-06T07:57:05.471Z","1.0.0":"2015-06-04T20:09:08.767Z"},"users":{},"author":{"name":"Luigi Pinca"},"repository":{"type":"git","url":"git+https://github.com/lpinca/forwarded-parse.git"},"versions":{"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":{"shasum":"08511eddaaa2ddfd56ba11138eee7df117a09325","size":3530,"noattachment":false,"key":"/forwarded-parse/-/forwarded-parse-2.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/forwarded-parse/download/forwarded-parse-2.1.2.tgz"},"_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,"publish_time":1635969306517,"_cnpm_publish_time":1635969306517,"_cnpmcore_publish_time":"2021-12-16T20:31:42.958Z"},"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":{"shasum":"be73f3df5aa0bad5ba1af42005801ac9f4d49263","size":3517,"noattachment":false,"key":"/forwarded-parse/-/forwarded-parse-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/forwarded-parse/download/forwarded-parse-2.1.1.tgz"},"_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,"publish_time":1606414946644,"_cnpm_publish_time":1606414946644,"_cnpmcore_publish_time":"2021-12-16T20:31:43.168Z"},"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":{"shasum":"1ae9d7a4be3af884f74d936d856f7d8c6abd0439","size":3491,"noattachment":false,"key":"/forwarded-parse/-/forwarded-parse-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/forwarded-parse/download/forwarded-parse-2.1.0.tgz"},"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":{},"publish_time":1515777042712,"_hasShrinkwrap":false,"_cnpm_publish_time":1515777042712,"_cnpmcore_publish_time":"2021-12-16T20:31:43.414Z"},"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","size":3265,"noattachment":false,"key":"/forwarded-parse/-/forwarded-parse-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/forwarded-parse/download/forwarded-parse-2.0.0.tgz"},"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":{},"publish_time":1472481829484,"_hasShrinkwrap":false,"_cnpm_publish_time":1472481829484,"_cnpmcore_publish_time":"2021-12-16T20:31:43.618Z"},"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","size":3148,"noattachment":false,"key":"/forwarded-parse/-/forwarded-parse-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/forwarded-parse/download/forwarded-parse-1.0.1.tgz"},"directories":{},"publish_time":1433577425471,"_hasShrinkwrap":false,"_cnpm_publish_time":1433577425471,"_cnpmcore_publish_time":"2021-12-16T20:31:43.828Z"},"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","size":3158,"noattachment":false,"key":"/forwarded-parse/-/forwarded-parse-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/forwarded-parse/download/forwarded-parse-1.0.0.tgz"},"maintainers":[{"name":"lpinca","email":"luigipinca@gmail.com"}],"directories":{},"publish_time":1433448548767,"_hasShrinkwrap":false,"_cnpm_publish_time":1433448548767,"_cnpmcore_publish_time":"2021-12-16T20:31:44.084Z"}},"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","_attachments":{},"homepage":"https://github.com/lpinca/forwarded-parse","bugs":{"url":"https://github.com/lpinca/forwarded-parse/issues"},"license":"MIT"}