{"id":19019381,"url":"https://github.com/jshttp/forwarded","last_synced_at":"2025-04-14T20:54:31.837Z","repository":{"id":21009540,"uuid":"24300217","full_name":"jshttp/forwarded","owner":"jshttp","description":"Parse HTTP X-Forwarded-For header","archived":false,"fork":false,"pushed_at":"2025-02-20T16:32:17.000Z","size":63,"stargazers_count":57,"open_issues_count":2,"forks_count":17,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-04-07T16:09:50.924Z","etag":null,"topics":["javascript","nodejs","x-forwarded-for"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jshttp.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"open_collective":"express"}},"created_at":"2014-09-21T18:53:54.000Z","updated_at":"2025-02-20T16:32:24.000Z","dependencies_parsed_at":"2025-03-31T14:07:16.173Z","dependency_job_id":"8b680fbe-5259-432c-98e8-ea968aac4ee7","html_url":"https://github.com/jshttp/forwarded","commit_stats":{"total_commits":173,"total_committers":2,"mean_commits":86.5,"dds":"0.017341040462427793","last_synced_commit":"973c51851e126340c3fdadb87cfc6849f17f2201"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jshttp%2Fforwarded","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jshttp%2Fforwarded/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jshttp%2Fforwarded/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jshttp%2Fforwarded/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jshttp","download_url":"https://codeload.github.com/jshttp/forwarded/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248625492,"owners_count":21135513,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","nodejs","x-forwarded-for"],"created_at":"2024-11-08T20:12:13.649Z","updated_at":"2025-04-14T20:54:31.810Z","avatar_url":"https://github.com/jshttp.png","language":"JavaScript","funding_links":["https://opencollective.com/express"],"categories":[],"sub_categories":[],"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 given [Node.js `IncomingMessage` object][nodejs-http-incomingmessage].\nReturns an array of 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 furthest address,\ntypically the end-user).\n\n## Testing\n\n```sh\n$ npm test\n```\n\n## License\n\n[MIT](LICENSE)\n\n[nodejs-http-incomingmessage]: https://nodejs.org/dist/latest/docs/api/http.html#class-httpincomingmessage\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjshttp%2Fforwarded","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjshttp%2Fforwarded","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjshttp%2Fforwarded/lists"}