{"id":18360605,"url":"https://github.com/samasaur1/swiftip","last_synced_at":"2025-04-10T03:36:48.143Z","repository":{"id":34978907,"uuid":"156110275","full_name":"Samasaur1/SwiftIP","owner":"Samasaur1","description":"A library to help with getting IP addresses in Swift.","archived":false,"fork":false,"pushed_at":"2024-01-24T20:11:50.000Z","size":502,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-16T12:31:45.305Z","etag":null,"topics":["hacktoberfest","ip","swift"],"latest_commit_sha":null,"homepage":"https://samasaur1.github.io/projects/swiftip.html","language":"Swift","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/Samasaur1.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-04T18:06:03.000Z","updated_at":"2022-02-16T21:03:15.000Z","dependencies_parsed_at":"2024-11-05T22:31:00.036Z","dependency_job_id":null,"html_url":"https://github.com/Samasaur1/SwiftIP","commit_stats":{"total_commits":23,"total_committers":3,"mean_commits":7.666666666666667,"dds":"0.34782608695652173","last_synced_commit":"a10b6ee21d2f9bdf3c992211905c6b2f67eddee6"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samasaur1%2FSwiftIP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samasaur1%2FSwiftIP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samasaur1%2FSwiftIP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Samasaur1%2FSwiftIP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Samasaur1","download_url":"https://codeload.github.com/Samasaur1/SwiftIP/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248153613,"owners_count":21056468,"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":["hacktoberfest","ip","swift"],"created_at":"2024-11-05T22:29:05.554Z","updated_at":"2025-04-10T03:36:48.121Z","avatar_url":"https://github.com/Samasaur1.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SwiftIP\n\nA library to help with getting IP addresses in Swift.\n\n## Installing\n\nAdd the following to your `Package.swift`:\n```swift\n.package(url: \"https://github.com/Samasaur1/SwiftIP.git\", from: \"2.0.0\"),\n```\n\nOr use [Ice](https://github.com/jakeheis/Ice):\n```sh\n$ ice add SwiftIP\n```\n\n## Usage\n\nThe documentation is available here: [https://samasaur1.github.io/SwiftIP/](https://samasaur1.github.io/SwiftIP/)\n\nEffectively, however, you do this:\n```swift\nimport SwiftIP\n\nguard let localIP = IP.local() else {\n    fatalError(\"Could not find local IP\")\n}\n\nlet publicIP: String? = IP.public()\n\nprint(\"Local IP: \\(localIP); public IP: \\(publicIP ?? \"Not connected\")\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamasaur1%2Fswiftip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamasaur1%2Fswiftip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamasaur1%2Fswiftip/lists"}