{"id":23123478,"url":"https://github.com/knbr13/myip","last_synced_at":"2025-04-04T04:24:33.771Z","repository":{"id":209951186,"uuid":"654357166","full_name":"knbr13/myip","owner":"knbr13","description":"a small tool to get your public and some useful info in a single command","archived":false,"fork":false,"pushed_at":"2023-12-30T06:20:15.000Z","size":178,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-09T15:44:12.359Z","etag":null,"topics":["cli","go","ip","tool"],"latest_commit_sha":null,"homepage":"","language":"Go","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/knbr13.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-06-16T00:44:23.000Z","updated_at":"2023-11-29T23:17:56.000Z","dependencies_parsed_at":"2023-11-30T01:27:51.863Z","dependency_job_id":"4740cbea-14fb-4cc1-b899-3727368fb49f","html_url":"https://github.com/knbr13/myip","commit_stats":null,"previous_names":["abdullah-alaadine/myip","knbr13/myip"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knbr13%2Fmyip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knbr13%2Fmyip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knbr13%2Fmyip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knbr13%2Fmyip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knbr13","download_url":"https://codeload.github.com/knbr13/myip/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247119669,"owners_count":20886788,"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":["cli","go","ip","tool"],"created_at":"2024-12-17T07:34:48.413Z","updated_at":"2025-04-04T04:24:33.751Z","avatar_url":"https://github.com/knbr13.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## MyIP\n\nMyIP is a small Go application that retrieves information about your public and private IP addresses. It provides the data in either plain text or JSON format.\n\n![MyIP](./myip.gif)\n\n### Usage\n\n#### Flags\n\n- `-json`: Display results in JSON format.\n- `-rich`: Display results in rich JSON format with additional information.\n\n### Running the Tool\n\n1. Clone the repository.\n2. Navigate to the tool's directory.\n3. Build the tool:\n   ```\n   go build myip\n   ```\n4. Run the tool:\n   ```\n   ./myip\n   ```\n\n### Example Usage\n\n1. Display public and private IP addresses in plain text:\n   ```\n   ./myip\n   ```\n2. Display results in JSON format:\n   ```\n   ./myip -json\n   ```\n3. Display rich JSON format with additional information:\n   ```\n   ./myip -json -rich\n   ```\n\n### Output Formats\n\n#### Plain Text\n\n    Public IP    : \u003cpublic_ip\u003e\n    Private IP   : \u003cprivate_ip\u003e\n    (Additional information for rich format:\n    Country      : \u003ccountry\u003e\n    City         : \u003ccity\u003e\n    Region       : \u003cregion\u003e\n    Location     : \u003clocation\u003e\n    HostName     : \u003chostname\u003e\n    Organization : \u003corganization\u003e\n    )\n\n#### JSON Format\n\n- Plain JSON:\n\n```\n    { \"publicIP\": \"\u003cpublic_ip\u003e\", \"privateIP\": \"\u003cprivate_ip\u003e\" }\n```\n\n- Rich JSON:\n\n```\n{\n    \"public IP\": \"\u003cpublic_ip\u003e\",\n    \"private IP\": \"\u003cprivate_ip\u003e\",\n    \"info\": {\n        \"ip\": \"\u003cpublic_ip\u003e\",\n        \"country\": \"\u003ccountry\u003e\",\n        \"city\": \"\u003ccity\u003e\",\n        \"region\": \"\u003cregion\u003e\",\n        \"loc\": \"\u003clocation\u003e\",\n        \"org\": \"\u003corganization\u003e\",\n        \"hostname\": \"\u003chostname\u003e\"\n    }\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknbr13%2Fmyip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknbr13%2Fmyip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknbr13%2Fmyip/lists"}