{"_id":"@fastify/forwarded@3.1.2","bugs":{"url":"https://github.com/fastify/forwarded/issues"},"dist":{"shasum":"18fd935de0ecf0d4a5b0f98d2e2e697fb54fa259","tarball":"http://registry-npm.ywwl.com/@fastify/forwarded/download/@fastify/forwarded-3.1.2.tgz","fileCount":14,"integrity":"sha512-89WiRG+hW3VQSfCwg4Hb8b43PeyEX15K5+lEfsZ4EUth/FyOjS/lv8HsVuswUNXWiSnxMGNouE/fq/0w3VumHQ==","signatures":[{"sig":"MEUCIDkLASbqkAL89XDVI/XPjuuIv4FrSNavdZ5xgCgeIpCRAiEApwFt1nBpgQLVtQBLjO9NS7Gje8SZBXVjzq6Tikh9V5Q=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDR8lGW9sqdLl3POugQ7HTcFxPj4yFx5G1fr9twK3wZPAIgFIA+zPaqzl8030hUBeix/IqNZ5hkZqfkJ9i++5nMxxM="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@fastify%2fforwarded@3.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":14478,"size":4671,"noattachment":false,"key":"/@fastify/forwarded/-/@fastify/forwarded-3.1.2.tgz"},"main":"index.js","name":"@fastify/forwarded","type":"commonjs","types":"types/index.d.ts","author":{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},"funding":[{"url":"https://github.com/sponsors/fastify","type":"github"},{"url":"https://opencollective.com/fastify","type":"opencollective"}],"gitHead":"3c50d2712eec79d1f9ce9743198cb048d032c02a","license":"MIT","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":"tstyche"},"version":"3.1.2","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"88e25ae8-8166-4b19-a9be-c7a2dd0786ea"}},"homepage":"https://github.com/fastify/forwarded#readme","keywords":["x-forwarded-for","http","req"],"repository":{"url":"git+https://github.com/fastify/forwarded.git","type":"git"},"_npmVersion":"11.19.1","description":"Parse HTTP X-Forwarded-For header","directories":{},"maintainers":[{"name":"eomm","email":"behemoth89@gmail.com"}],"_nodeVersion":"24.22.0","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"}],"_hasShrinkwrap":false,"devDependencies":{"c8":"^12.0.0","eslint":"^9.17.0","tstyche":"^7.0.0","benchmark":"2.1.4","@types/node":"^26.0.1","neostandard":"^0.13.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/forwarded_3.1.2_1792582642960_0.1329172397523566"},"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":1792582643039,"_cnpm_publish_time":1792582643039,"dist-tags":{"latest":"3.1.2"}}