{"name":"@fastify/forwarded","version":"3.0.1","keywords":["x-forwarded-for","http","req"],"author":{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},"license":"MIT","_id":"@fastify/forwarded@3.0.1","maintainers":[{"name":"delvedor","email":"tommydelved@gmail.com"},{"name":"matteo.collina","email":"hello@matteocollina.com"},{"name":"jsumners","email":"james.sumners@gmail.com"},{"name":"eomm","email":"behemoth89@gmail.com"},{"name":"climba03003","email":"kaka@kakawebsitedemo.com"}],"contributors":[{"name":"Matteo Collina","email":"hello@matteocollina.com"},{"url":"https://james.sumners.info","name":"James Sumners"},{"name":"Aras Abbasi","email":"aras.abbasi@gmail.com"},{"url":"https://github.com/fdawgs","name":"Frazer Smith","email":"frazer.dev@icloud.com"}],"homepage":"https://github.com/fastify/forwarded#readme","bugs":{"url":"https://github.com/fastify/forwarded/issues"},"dist":{"shasum":"9662b7bd4a59f6d123cc3487494f75f635c32d23","tarball":"http://registry-npm.ywwl.com/@fastify/forwarded/download/@fastify/forwarded-3.0.1.tgz","fileCount":5,"integrity":"sha512-JqDochHFqXs3C3Ml3gOY58zM7OqO9ENqPo0UqAjAjH8L01fRZqwX9iLeX34//kiJubF7r2ZQHtBRU36vONbLlw==","signatures":[{"sig":"MEUCIC9Vwqmwd5XLQL+fufecri8rWVD7O1EK48PwoPXn8uPgAiEA88qbqPM2NSeyr4HsNc2wOO8+tWgcXAKiP1d063TzjSA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5700,"size":2563,"noattachment":false,"key":"/@fastify/forwarded/-/@fastify/forwarded-3.0.1.tgz"},"type":"commonjs","types":"types/index.d.ts","funding":[{"url":"https://github.com/sponsors/fastify","type":"github"},{"url":"https://opencollective.com/fastify","type":"opencollective"}],"gitHead":"45a4a5071c6758dbe24e052559ec69c2d9024a80","scripts":{"lint":"eslint","test":"npm run test:unit && npm run test:typescript","bench":"node benchmark/index.js","lint:fix":"eslint --fix","test:unit":"c8 --100 node --test","bench:combined":"node benchmark/combined.js","test:typescript":"tsd"},"_npmUser":{"name":"eomm","email":"behemoth89@gmail.com"},"repository":{"url":"git+https://github.com/fastify/forwarded.git","type":"git"},"_npmVersion":"10.9.3","description":"Parse HTTP X-Forwarded-For header","directories":{},"_nodeVersion":"22.19.0","_hasShrinkwrap":false,"devDependencies":{"c8":"^10.1.2","tsd":"^0.33.0","eslint":"^9.17.0","benchmark":"2.1.4","@types/node":"^24.0.8","neostandard":"^0.12.0"},"_npmOperationalInternal":{"tmp":"tmp/forwarded_3.0.1_1759072352770_0.01018604859172556","host":"s3://npm-registry-packages-npm-production"},"readme":"# @fastify/forwarded\n\n[![CI](https://github.com/fastify/forwarded/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/fastify/forwarded/actions/workflows/ci.yml)\n[![NPM version](https://img.shields.io/npm/v/@fastify/forwarded.svg?style=flat)](https://www.npmjs.com/package/@fastify/forwarded)\n[![neostandard javascript style](https://img.shields.io/badge/code_style-neostandard-brightgreen?style=flat)](https://github.com/neostandard/neostandard)\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\nconst forwarded = require('@fastify/forwarded')\n```\n\n### forwarded(req)\n\n```js\nconst 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":1759072352937,"_cnpm_publish_time":1759072352937,"dist-tags":{"latest":"3.1.2"}}