{"name":"@fastify/forwarded","description":"Parse HTTP X-Forwarded-For header","version":"1.0.0","contributors":[{"name":"Matteo Collina","email":"hello@matteocollina.com"},{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"}],"license":"MIT","keywords":["x-forwarded-for","http","req"],"repository":{"type":"git","url":"git+https://github.com/fastify/forwarded.git"},"devDependencies":{"beautify-benchmark":"0.2.4","benchmark":"2.1.4","standard":"^16.0.3","tap":"^14.11.0"},"engines":{"node":">= 10"},"scripts":{"bench":"node benchmark/index.js","test":"standard && tap"},"gitHead":"37fb391d0304d36a0a8ec0cc276a49d84e60cbfd","bugs":{"url":"https://github.com/fastify/forwarded/issues"},"homepage":"https://github.com/fastify/forwarded#readme","_id":"@fastify/forwarded@1.0.0","_nodeVersion":"14.15.4","_npmVersion":"6.14.11","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"dist":{"integrity":"sha512-VoO+6WD0aRz8bwgJZ8pkkxjq7o/782cQ1j945HWg0obZMgIadYW3Pew0+an+k1QL7IPZHM3db5WF6OP6x4ymMA==","shasum":"cc4a3bc1f02856e56e67d6d655026e8d8c2e7429","tarball":"http://registry-npm.ywwl.com/@fastify/forwarded/download/@fastify/forwarded-1.0.0.tgz","fileCount":4,"unpackedSize":3907,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgJrgmCRA9TVsSAnZWagAAOzoP/j56Im4u0ENZ+CmyNBb1\nP9C6B1c3RqbsUh/vYr0s2pZPy6NGM7vHgQyP24AHcw5eTB9FYGOmGsouZTrY\n5ypAlu6/T8I1+8wmzavcvTm34n7gYXtXQu96vo6jsqg4iuMQZ917GvFDVw+K\nYOwzc/658nIhEarlZhT5Pt0uIUsfjIfE6zUmFFNtB6JWRSqFwk6K8e7c7yYd\nHFwetuUCDb/3sNLmtOJL4WW9z0/VBJ7j2mDPdCn/xHhN9jRu6NDU6wZsCewC\nCrCNsSgIyLzSzo3QeZAj3ljHlYvpG/Eo43VElKIN8iCTgSPdqzBb7pr+jUqi\nMNloG6DDBWKwg0RJ7jiD0cGFRxr49imOOkuY7JJp1N3KEiOubAhGUrcrW8uY\nMaLzzVOK6md+CwkB3oN2gun20Msq6gpD42lpfQzhHISaSpwj/y4TV3FRhI6i\nUHId9G0xSkl/l41R7X+yTnZB0ctWdN/rPrWBkzW49hiJLjSwjOiQ0kbKxp2H\np89vCb6IN54CIHYaOrSH7o+5q93Sxf4uk9YNRwetbAFhfA7sK4+1guT+Xlsq\nz+U3c2jP8H/ypB6wtS+jrSy5QTMFnibaRUyQz9Kw1sEYN0kLXRors+Ii4Knk\n9BM5ylXIwLigyrBLcShHnRum50a/0gB26ebQKZ0Xs3MkTBePlC7+jT+6xKSK\nDsub\r\n=ppUH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCwbVKpYU+yCpOanKirH4cZ6KPBhX48OPBPA7UwW18X5wIhAK+cucltxbfcZqbduC9wFUfae1W4PMg8S8fnJYZqjRNb"}],"size":1996,"noattachment":false,"key":"/@fastify/forwarded/-/@fastify/forwarded-1.0.0.tgz"},"directories":{},"maintainers":[{"name":"climba03003","email":"kaka@kakawebsitedemo.com"},{"name":"kibertoad","email":"iselwin@gmail.com"},{"name":"airhorns","email":"harry@harry.me"},{"name":"davidmarkclements","email":"david.mark.clements@gmail.com"},{"name":"starptech","email":"deusdustin@gmail.com"},{"name":"delvedor","email":"tommydelved@gmail.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"allevo","email":"tomallevi@gmail.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"ethan_arrowood","email":"ethan@arrowood.dev"},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"fox1t","email":"maksim@sinik.it"},{"name":"salmanm","email":"salmanmitha@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/forwarded_1.0.0_1613150245689_0.8541590422732184"},"_hasShrinkwrap":false,"readme":"# @fastify/forwarded\n\n![CI](https://github.com/fastify/forwarded/workflows/CI/badge.svg)\n[![NPM version](https://img.shields.io/npm/v/@fastify/forwarded.svg?style=flat)](https://www.npmjs.com/package/@fastify/forwarded)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://standardjs.com/)\n\nParse HTTP X-Forwarded-For header.\n\nUpdated version of the great https://github.com/jshttp/forwarded.\nImplements https://github.com/jshttp/forwarded/pull/9.\n\n## Installation\n\n```sh\n$ npm i @fastify/forwarded\n```\n\n## API\n\n```js\nvar forwarded = require('@fastify/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","publish_time":1613150245784,"_cnpm_publish_time":1613150245784,"dist-tags":{"latest":"3.1.2"}}