{"id":17766555,"url":"https://github.com/floatdrop/express-real-ip","last_synced_at":"2025-03-15T13:30:50.454Z","repository":{"id":65999181,"uuid":"21416544","full_name":"floatdrop/express-real-ip","owner":"floatdrop","description":"Use X-Real-IP header for ip address in express","archived":false,"fork":false,"pushed_at":"2014-07-02T08:47:34.000Z","size":124,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-14T01:31:43.637Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/floatdrop.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-02T08:15:09.000Z","updated_at":"2018-05-14T11:38:54.000Z","dependencies_parsed_at":"2023-02-19T20:55:23.602Z","dependency_job_id":null,"html_url":"https://github.com/floatdrop/express-real-ip","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatdrop%2Fexpress-real-ip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatdrop%2Fexpress-real-ip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatdrop%2Fexpress-real-ip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatdrop%2Fexpress-real-ip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/floatdrop","download_url":"https://codeload.github.com/floatdrop/express-real-ip/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243507764,"owners_count":20301889,"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":[],"created_at":"2024-10-26T20:32:24.310Z","updated_at":"2025-03-15T13:30:50.445Z","avatar_url":"https://github.com/floatdrop.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# express-real-ip [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url]\n\u003e Get ip address from custom header\n\n```js\n\nvar app = require('express')();\nvar getRealIp = require('express-real-ip')();\n\napp.use(getRealIp);\n\napp.get('/', function (req, res, next) {\n    res.send(req.ip);\n    next();\n});\n\napp.listen(3000, function() {\n    console.log('Listening on port %d', server.address().port);\n});\n\n// curl localhost:3000 -H \"X-Real-Ip: 87.250.248.98\"\n// 87.250.248.98\n```\n\n# API\n\n### express-real-ip([options])\n\nReturns middleware function, that appends header value to X-Forwarded-For header (this is how express figures out `req.ip` value).\n\n#### options\n\n * `headerName` - name of header, which contains real ip address (defaults to `X-Real-Ip`).\n\n# License\n\nMIT (c) 2014 Vsevolod Strukchinsky (floatdrop@gmail.com)\n\n[npm-url]: https://npmjs.org/package/express-real-ip\n[npm-image]: http://img.shields.io/npm/v/express-real-ip.svg\n\n[travis-url]: https://travis-ci.org/floatdrop/express-real-ip\n[travis-image]: http://img.shields.io/travis/floatdrop/express-real-ip.svg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloatdrop%2Fexpress-real-ip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffloatdrop%2Fexpress-real-ip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloatdrop%2Fexpress-real-ip/lists"}