{"id":18870108,"url":"https://github.com/iteam1337/ipjs","last_synced_at":"2026-02-14T12:30:18.992Z","repository":{"id":27147327,"uuid":"30616294","full_name":"Iteam1337/ipjs","owner":"Iteam1337","description":"resolve your external ip from node","archived":false,"fork":false,"pushed_at":"2015-02-10T21:47:23.000Z","size":136,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":21,"default_branch":"master","last_synced_at":"2024-12-30T23:44:35.356Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Iteam1337.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-10T21:46:49.000Z","updated_at":"2015-02-10T21:47:23.000Z","dependencies_parsed_at":"2022-09-11T05:02:22.362Z","dependency_job_id":null,"html_url":"https://github.com/Iteam1337/ipjs","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/Iteam1337%2Fipjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Iteam1337%2Fipjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Iteam1337%2Fipjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Iteam1337%2Fipjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Iteam1337","download_url":"https://codeload.github.com/Iteam1337/ipjs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239816514,"owners_count":19701753,"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-11-08T05:18:48.857Z","updated_at":"2026-02-14T12:30:18.925Z","avatar_url":"https://github.com/Iteam1337.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"node ipjs\n====\n\n## what is it?\nIt's a node lib to return your servers public facing IP adress from within nodejs.\n\n## how does it work?\nIt uses the public ip service provided by Iteam (which by the way is available as http endpoint too: ´curl ip.iteam.se´ ) - see http://ip.iteam.se for reference\n\nThe first time you require('ip') the call to the external web service will be issued and after that it will be cached. \n\nWarning! There is a built-in race condition, if you want to make sure the call is finished and the IP is resolved, please use the promise provided.\n\n## install\n\n    npm install ipjs\n\n## usage\n\n    var ip = require('ipjs');\n    ip.then(function(){\n        console.log(ip.toString()); // 11.22.33.44\n    })\n\n## as singleton\n\n    var ip = require('ipjs');\n    ...\n    app.get('..', function(req,res){\n        res.send(ip.toString());\n    })\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiteam1337%2Fipjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiteam1337%2Fipjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiteam1337%2Fipjs/lists"}