{"id":18709522,"url":"https://github.com/denorg/get-ip","last_synced_at":"2025-04-12T10:35:39.753Z","repository":{"id":57107507,"uuid":"266254795","full_name":"denorg/get-ip","owner":"denorg","description":"🌐 Get your public IP address in Deno","archived":false,"fork":false,"pushed_at":"2020-10-03T11:28:40.000Z","size":27,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-10-17T18:46:34.479Z","etag":null,"topics":["deno","denoland","denorg","ip","ipv4","ipv6","typescript"],"latest_commit_sha":null,"homepage":"https://denorg.github.io/get-ip/","language":"TypeScript","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/denorg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"yg","liberapay":"yg","custom":"https://thanks.yogi.codes"}},"created_at":"2020-05-23T03:22:41.000Z","updated_at":"2022-07-11T11:47:01.000Z","dependencies_parsed_at":"2022-08-20T17:10:59.002Z","dependency_job_id":null,"html_url":"https://github.com/denorg/get-ip","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":"denorg/starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denorg%2Fget-ip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denorg%2Fget-ip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denorg%2Fget-ip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denorg%2Fget-ip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/denorg","download_url":"https://codeload.github.com/denorg/get-ip/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223512781,"owners_count":17157858,"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":["deno","denoland","denorg","ip","ipv4","ipv6","typescript"],"created_at":"2024-11-07T12:27:52.240Z","updated_at":"2024-11-07T12:27:52.868Z","avatar_url":"https://github.com/denorg.png","language":"TypeScript","funding_links":["https://github.com/sponsors/yg","https://liberapay.com/yg","https://thanks.yogi.codes"],"categories":[],"sub_categories":[],"readme":"# 🌐 Get IP\n\nGet your public IP address in Deno.\n\n[![Deno CI](https://github.com/denorg/get-ip/workflows/Deno%20CI/badge.svg)](https://github.com/denorg/get-ip/actions)\n[![GitHub](https://img.shields.io/github/license/denorg/get-ip)](https://github.com/denorg/get-ip/blob/master/LICENSE)\n[![Contributors](https://img.shields.io/github/contributors/denorg/get-ip)](https://github.com/denorg/get-ip/graphs/contributors)\n[![Deno Starter](https://img.shields.io/badge/deno-starter-brightgreen)](https://denorg.github.io/starter/)\n[![Made by Denorg](https://img.shields.io/badge/made%20by-denorg-0082fb)](https://github.com/denorg)\n[![TypeScript](https://img.shields.io/badge/types-TypeScript-blue)](https://github.com/denorg/get-ip)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n\n## ⭐ Getting started\n\nImport the `getIP` function and use it:\n\n```ts\nimport { getIP } from \"https://deno.land/x/get_ip/mod.ts\";\n\nconst getMyIP = async () =\u003e {\n  console.log(`Your public IP is ${await getIP({ipv6: true})}`);\n}\n\ngetMyIP();\n```\n\n### CLI with [DPX](https://github.com/denorg/dpx)\n\nAfter [installing DPX](https://github.com/denorg/dpx), you can directly use the CLI using the `dpx` command:\n\n```bash\ndpx get_ip \u003cipv4 | ipv6\u003e\n# 123.456.789.012\n```\n\n### CLI\n\nAlternatively, you can use it directly from the CLI by using `deno run`:\n\n```bash\ndeno run --allow-net https://deno.land/x/get_ip/cli.ts \u003cipv4 | ipv6\u003e\n# 123.456.789.012\n```\n\nYou can also install it globally using the following:\n\n```bash\ndeno install --allow-net -n get-ip https://deno.land/x/get_ip/cli.ts\n```\n\nThen, the package is available to run:\n\n```bash\nget_ip \u003cipv4 | ipv6\u003e\n# 123.456.789.012\n```\n\n### Configuration\n\nRequired permissions:\n\n1. `--allow-net`\n\n## 👩‍💻 Development\n\nRun tests:\n\n```bash\ndeno test --allow-net\n```\n\n## 📄 License\n\nMIT © [Denorg](https://den.org.in)\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://den.org.in\"\u003e\n    \u003cimg width=\"100\" alt=\"\" src=\"https://raw.githubusercontent.com/denorg/denorg/master/logo.svg\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003csub\u003eA project by \u003ca href=\"https://den.org.in\"\u003eDenorg\u003c/a\u003e, the world's first Deno-focused community\u003cbr\u003eorganization and consulting company. \u003ca href=\"https://den.org.in\"\u003eWork with us →\u003c/a\u003e\u003c/sub\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenorg%2Fget-ip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdenorg%2Fget-ip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenorg%2Fget-ip/lists"}