{"_id":"forwarded","_rev":"200702","name":"forwarded","description":"Parse HTTP X-Forwarded-For header","dist-tags":{"latest":"0.2.0"},"maintainers":[{"name":"dougwilson","email":""}],"time":{"modified":"2023-03-20T10:09:52.000Z","created":"2014-09-21T19:23:28.870Z","0.2.0":"2021-05-31T23:23:02.495Z","0.1.2":"2017-09-15T02:17:54.232Z","0.1.1":"2017-09-10T23:15:48.834Z","0.1.0":"2014-09-21T19:23:28.870Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/jshttp/forwarded.git"},"versions":{"0.2.0":{"name":"forwarded","description":"Parse HTTP X-Forwarded-For header","version":"0.2.0","contributors":[{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"}],"license":"MIT","keywords":["x-forwarded-for","http","req"],"repository":{"type":"git","url":"git+https://github.com/jshttp/forwarded.git"},"devDependencies":{"beautify-benchmark":"0.2.4","benchmark":"2.1.4","deep-equal":"1.0.1","eslint":"7.27.0","eslint-config-standard":"14.1.1","eslint-plugin-import":"2.23.4","eslint-plugin-node":"11.1.0","eslint-plugin-promise":"4.3.1","eslint-plugin-standard":"4.1.0","mocha":"8.4.0","nyc":"15.1.0"},"engines":{"node":">= 0.6"},"scripts":{"bench":"node benchmark/index.js","lint":"eslint .","test":"mocha --reporter spec --bail --check-leaks test/","test-ci":"nyc --reporter=lcov --reporter=text npm test","test-cov":"nyc --reporter=html --reporter=text npm test","version":"node scripts/version-history.js && git add HISTORY.md"},"gitHead":"93d2f4c185edd14cb023632c0b216a9f08646ff1","bugs":{"url":"https://github.com/jshttp/forwarded/issues"},"homepage":"https://github.com/jshttp/forwarded#readme","_id":"forwarded@0.2.0","_nodeVersion":"14.15.4","_npmVersion":"6.14.10","dist":{"shasum":"2269936428aad4c15c7ebe9779a84bf0b2a81811","size":2696,"noattachment":false,"key":"/forwarded/-/forwarded-0.2.0.tgz","tarball":"http://name.csiicloud.com:7001/forwarded/download/forwarded-0.2.0.tgz"},"_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"directories":{},"maintainers":[{"name":"dougwilson","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/forwarded_0.2.0_1622503382323_0.8063619100472423"},"_hasShrinkwrap":false,"publish_time":1622503382495,"_cnpm_publish_time":1622503382495,"_cnpmcore_publish_time":"2021-12-13T11:23:59.501Z"},"0.1.2":{"name":"forwarded","description":"Parse HTTP X-Forwarded-For header","version":"0.1.2","contributors":[{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"}],"license":"MIT","keywords":["x-forwarded-for","http","req"],"repository":{"type":"git","url":"git+https://github.com/jshttp/forwarded.git"},"devDependencies":{"beautify-benchmark":"0.2.4","benchmark":"2.1.4","eslint":"3.19.0","eslint-config-standard":"10.2.1","eslint-plugin-import":"2.7.0","eslint-plugin-node":"5.1.1","eslint-plugin-promise":"3.5.0","eslint-plugin-standard":"3.0.1","istanbul":"0.4.5","mocha":"1.21.5"},"files":["LICENSE","HISTORY.md","README.md","index.js"],"engines":{"node":">= 0.6"},"scripts":{"bench":"node benchmark/index.js","lint":"eslint .","test":"mocha --reporter spec --bail --check-leaks test/","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"},"gitHead":"2fc094b49781b62acb0e2b00f83abd641d604a7c","bugs":{"url":"https://github.com/jshttp/forwarded/issues"},"homepage":"https://github.com/jshttp/forwarded#readme","_id":"forwarded@0.1.2","_shasum":"98c23dab1175657b8c0573e8ceccd91b0ff18c84","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.1","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"dist":{"shasum":"98c23dab1175657b8c0573e8ceccd91b0ff18c84","size":2588,"noattachment":false,"key":"/forwarded/-/forwarded-0.1.2.tgz","tarball":"http://name.csiicloud.com:7001/forwarded/download/forwarded-0.1.2.tgz"},"maintainers":[{"name":"dougwilson","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/forwarded-0.1.2.tgz_1505441873168_0.0936233215034008"},"directories":{},"publish_time":1505441874232,"_cnpm_publish_time":1505441874232,"_hasShrinkwrap":false},"0.1.1":{"name":"forwarded","description":"Parse HTTP X-Forwarded-For header","version":"0.1.1","contributors":[{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"}],"license":"MIT","keywords":["x-forwarded-for","http","req"],"repository":{"type":"git","url":"git+https://github.com/jshttp/forwarded.git"},"devDependencies":{"eslint":"3.19.0","eslint-config-standard":"10.2.1","eslint-plugin-import":"2.7.0","eslint-plugin-node":"5.1.0","eslint-plugin-promise":"3.5.0","eslint-plugin-standard":"3.0.1","istanbul":"0.4.5","mocha":"1.21.5"},"files":["LICENSE","HISTORY.md","README.md","index.js"],"engines":{"node":">= 0.6"},"scripts":{"lint":"eslint .","test":"mocha --reporter spec --bail --check-leaks test/","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"},"gitHead":"45e46e2a56348b62ebe679e263550624e6a02d70","bugs":{"url":"https://github.com/jshttp/forwarded/issues"},"homepage":"https://github.com/jshttp/forwarded#readme","_id":"forwarded@0.1.1","_shasum":"8a4e30c640b05395399a3549c730257728048961","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.1","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"dist":{"shasum":"8a4e30c640b05395399a3549c730257728048961","size":2375,"noattachment":false,"key":"/forwarded/-/forwarded-0.1.1.tgz","tarball":"http://name.csiicloud.com:7001/forwarded/download/forwarded-0.1.1.tgz"},"maintainers":[{"name":"dougwilson","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/forwarded-0.1.1.tgz_1505085347950_0.7802835658658296"},"directories":{},"publish_time":1505085348834,"_hasShrinkwrap":false,"_cnpm_publish_time":1505085348834},"0.1.0":{"name":"forwarded","description":"Parse HTTP X-Forwarded-For header","version":"0.1.0","contributors":[{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"}],"license":"MIT","keywords":["x-forwarded-for","http","req"],"repository":{"type":"git","url":"https://github.com/jshttp/forwarded"},"devDependencies":{"istanbul":"0.3.2","mocha":"~1.21.4"},"files":["LICENSE","HISTORY.md","README.md","index.js"],"engines":{"node":">= 0.6"},"scripts":{"test":"mocha --reporter spec --bail --check-leaks test/","test-cov":"istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/","test-travis":"istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"},"gitHead":"e9a9faeb3cfaadf40eb57d144fff26bca9b818e8","bugs":{"url":"https://github.com/jshttp/forwarded/issues"},"homepage":"https://github.com/jshttp/forwarded","_id":"forwarded@0.1.0","_shasum":"19ef9874c4ae1c297bcf078fde63a09b66a84363","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"dougwilson","email":""}],"dist":{"shasum":"19ef9874c4ae1c297bcf078fde63a09b66a84363","size":2053,"noattachment":false,"key":"/forwarded/-/forwarded-0.1.0.tgz","tarball":"http://name.csiicloud.com:7001/forwarded/download/forwarded-0.1.0.tgz"},"directories":{},"publish_time":1411327408870,"_cnpm_publish_time":1411327408870,"_hasShrinkwrap":false}},"readme":"# forwarded\n\n[![NPM Version][npm-image]][npm-url]\n[![NPM Downloads][downloads-image]][downloads-url]\n[![Node.js Version][node-version-image]][node-version-url]\n[![Build Status][ci-image]][ci-url]\n[![Test Coverage][coveralls-image]][coveralls-url]\n\nParse HTTP X-Forwarded-For header\n\n## Installation\n\nThis is a [Node.js](https://nodejs.org/en/) module available through the\n[npm registry](https://www.npmjs.com/). Installation is done using the\n[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):\n\n```sh\n$ npm install forwarded\n```\n\n## API\n\n```js\nvar forwarded = require('forwarded')\n```\n\n### forwarded(req)\n\n```js\nvar addresses = forwarded(req)\n```\n\nParse the `X-Forwarded-For` header from the request. Returns an array\nof the addresses, including the socket address for the `req`, in reverse\norder (i.e. index `0` is the socket address and the last index is the\nfurthest address, typically the end-user).\n\n## Testing\n\n```sh\n$ npm test\n```\n\n## License\n\n[MIT](LICENSE)\n\n[ci-image]: https://badgen.net/github/checks/jshttp/forwarded/master?label=ci\n[ci-url]: https://github.com/jshttp/forwarded/actions?query=workflow%3Aci\n[npm-image]: https://img.shields.io/npm/v/forwarded.svg\n[npm-url]: https://npmjs.org/package/forwarded\n[node-version-image]: https://img.shields.io/node/v/forwarded.svg\n[node-version-url]: https://nodejs.org/en/download/\n[coveralls-image]: https://img.shields.io/coveralls/jshttp/forwarded/master.svg\n[coveralls-url]: https://coveralls.io/r/jshttp/forwarded?branch=master\n[downloads-image]: https://img.shields.io/npm/dm/forwarded.svg\n[downloads-url]: https://npmjs.org/package/forwarded\n","_attachments":{},"homepage":"https://github.com/jshttp/forwarded#readme","bugs":{"url":"https://github.com/jshttp/forwarded/issues"},"license":"MIT"}