{"id":15559436,"url":"https://github.com/citguru/express-ip","last_synced_at":"2025-10-16T01:47:16.392Z","repository":{"id":41001214,"uuid":"138955621","full_name":"CITGuru/express-ip","owner":"CITGuru","description":"An Express Middleware for getting IP information","archived":false,"fork":false,"pushed_at":"2020-02-22T09:54:49.000Z","size":8,"stargazers_count":36,"open_issues_count":3,"forks_count":12,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-05T17:51:50.848Z","etag":null,"topics":["express","express-middleware","geoip","geolocation","ip","nodejs"],"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/CITGuru.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-28T02:23:05.000Z","updated_at":"2024-10-21T01:35:13.000Z","dependencies_parsed_at":"2022-09-20T19:26:46.655Z","dependency_job_id":null,"html_url":"https://github.com/CITGuru/express-ip","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CITGuru%2Fexpress-ip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CITGuru%2Fexpress-ip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CITGuru%2Fexpress-ip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CITGuru%2Fexpress-ip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CITGuru","download_url":"https://codeload.github.com/CITGuru/express-ip/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235616601,"owners_count":19018760,"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":["express","express-middleware","geoip","geolocation","ip","nodejs"],"created_at":"2024-10-02T15:48:49.966Z","updated_at":"2025-10-07T10:30:35.061Z","avatar_url":"https://github.com/CITGuru.png","language":"JavaScript","funding_links":["http://patreon.com/oyetoketoby"],"categories":[],"sub_categories":[],"readme":"# Express IP\n\nThis is an express module for getting IP information using geoip-lite. It can also be used as express middleware. Basically its an express middleware. So with this, you can get info about an IP.\n\n# Installation\n\n```\nnpm install express-ip\n```\n\n# Usage\n\n## short\n```\nconst express = require('express');\nconst app = express();\nconst expressip = require('express-ip');\napp.use(expressip().getIpInfoMiddleware);\n\napp.get('/', function (req, res) {\n    res.send(req.ipInfo);\n});\n\n```\n## full\n```\nconst express = require('express');\nconst app = express();\nconst expressip = require('express-ip');\nconst PORT = process.env.PORT || 7000;\nconst path = require('path');\n\napp.use(expressip().getIpInfoMiddleware);\n\n\napp.set(\"PORT\", PORT);\n\napp.get('/', function (req, res) {\n    res.send(req.ipInfo);\n});\n\napp.listen(app.get('PORT'), function () {\n    console.log('Express started on http://localhost:' +\n        app.get('PORT') + '; press Ctrl-C to terminate.');\n});\n\n```\n\n# Author\nOyetoke Toby \u003coyetoketoby80@gmail.com\u003e (http://patreon.com/oyetoketoby)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcitguru%2Fexpress-ip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcitguru%2Fexpress-ip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcitguru%2Fexpress-ip/lists"}