{"id":16835026,"url":"https://github.com/wongzigii/etchosts","last_synced_at":"2025-06-15T15:36:25.544Z","repository":{"id":81014570,"uuid":"81723768","full_name":"wongzigii/etchosts","owner":"wongzigii","description":"Resolve host names to custom IP addresses.","archived":false,"fork":false,"pushed_at":"2017-03-04T07:03:25.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-18T02:24:57.401Z","etag":null,"topics":["etchosts","hosts"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/wongzigii.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-12T12:20:01.000Z","updated_at":"2017-02-24T08:37:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"eb112c76-95df-4ce6-bbd2-cbf234ac2e8b","html_url":"https://github.com/wongzigii/etchosts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wongzigii/etchosts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wongzigii%2Fetchosts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wongzigii%2Fetchosts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wongzigii%2Fetchosts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wongzigii%2Fetchosts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wongzigii","download_url":"https://codeload.github.com/wongzigii/etchosts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wongzigii%2Fetchosts/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259998369,"owners_count":22943802,"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":["etchosts","hosts"],"created_at":"2024-10-13T12:08:44.736Z","updated_at":"2025-06-15T15:36:25.177Z","avatar_url":"https://github.com/wongzigii.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EtcHosts\n\nEtcHosts is a URLSession-based framework for *OS to resolves host name to specific IP address directly, likes `/etc/host` in *inux.\n\n## Example\n\nUsage is brain-dead simple with two lines of codes.\n\n````swift\n\nimport EtcHosts\n\nfunc application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -\u003e Bool {\n\n\tURLProtocol.registerClass(EtcHostsURLProtocol.self)\n\n\tEtcHostsURLProtocol.configureHosts { (configuration) in\n\t\tconfiguration.resolveHostName(hostname: \"google.com\", to: \"192.168.0.1\")\n\t}\n\n\treturn true\n}\n````\n\n## LICENSE\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwongzigii%2Fetchosts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwongzigii%2Fetchosts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwongzigii%2Fetchosts/lists"}