{"id":18357023,"url":"https://github.com/gumob/punycodeswift","last_synced_at":"2025-04-06T12:32:26.869Z","repository":{"id":62451272,"uuid":"158176724","full_name":"gumob/PunycodeSwift","owner":"gumob","description":"PunycodeSwift is a pure Swift library to allows you to encode and decode punycoded strings","archived":false,"fork":false,"pushed_at":"2024-08-28T07:27:23.000Z","size":299,"stargazers_count":26,"open_issues_count":2,"forks_count":10,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-02T20:17:23.276Z","etag":null,"topics":["carthage","idna","ios","macos","punycode","swift-package-manager","swift5","tvos","visionos","watchos"],"latest_commit_sha":null,"homepage":"https://gumob.github.io/PunycodeSwift/swiftdoc/","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/gumob.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":"2018-11-19T07:04:36.000Z","updated_at":"2025-03-02T04:29:50.000Z","dependencies_parsed_at":"2024-08-22T09:43:38.190Z","dependency_job_id":"399c1c28-4de1-4048-8e39-6544f8f67210","html_url":"https://github.com/gumob/PunycodeSwift","commit_stats":{"total_commits":72,"total_committers":7,"mean_commits":"10.285714285714286","dds":0.4722222222222222,"last_synced_commit":"4356ec54e073741449640d3d50a1fd24fd1e1b8b"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gumob%2FPunycodeSwift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gumob%2FPunycodeSwift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gumob%2FPunycodeSwift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gumob%2FPunycodeSwift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gumob","download_url":"https://codeload.github.com/gumob/PunycodeSwift/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247484495,"owners_count":20946388,"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":["carthage","idna","ios","macos","punycode","swift-package-manager","swift5","tvos","visionos","watchos"],"created_at":"2024-11-05T22:12:35.329Z","updated_at":"2025-04-06T12:32:21.848Z","avatar_url":"https://github.com/gumob.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Swift Package Manager compatible](https://img.shields.io/badge/Swift_Package_Manager-compatible-orange)](https://github.com/gumob/PunycodeSwift)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg)](https://github.com/gumob/PunycodeSwift)\n[![Cocoapods Version](https://img.shields.io/cocoapods/v/Punycode.svg)](https://cocoapods.org/pods/Punycode)\n[![Cocoapods Platform](https://img.shields.io/cocoapods/p/Punycode.svg)](https://cocoadocs.org/docsets/Punycode)\n[![Build](https://github.com/gumob/PunycodeSwift/actions/workflows/main.yml/badge.svg)](https://github.com/gumob/PunycodeSwift/actions/workflows/main.yml)\n[![codecov](https://codecov.io/gh/gumob/PunycodeSwift/branch/master/graph/badge.svg)](https://codecov.io/gh/gumob/PunycodeSwift)\n![Language](https://img.shields.io/badge/Language-Swift%205.0-orange.svg)\n![Packagist](https://img.shields.io/packagist/l/doctrine/orm.svg)\n\n# PunycodeSwift\n\n\u003ccode\u003ePunycodeSwift\u003c/code\u003e is a pure Swift library to allows you to encode and decode `punycoded` strings by using String extension.\n\n## What is Punycode?\n\nPunycode is a representation of Unicode with the limited ASCII character subset used for Internet host names. Using Punycode, host names containing Unicode characters are transcoded to a subset of ASCII consisting of letters, digits, and hyphen, which is called the Letter-Digit-Hyphen (LDH) subset. For example, München (German name for Munich) is encoded as Mnchen-3ya. [(Wikipedia)](https://en.wikipedia.org/wiki/Punycode)\n\n## Requirements\n- macOS 10.13 or later\n- iOS 12.0 or later\n- tvOS 12.0 or later\n- watchOS 4.0 or later\n- visionOS 1.0 or later\n- Swift 5.0 or later\n\n## Installation\n\n### Swift Package Manager\n\nAdd the following to your `Package.swift` file.\n\n- macOS, iOS, tvOS, watchOS, visionOS, and Swift 5\n    ```swift\n    dependencies: [\n        .package(url: \"https://github.com/gumob/PunycodeSwift.git\", .upToNextMajor(from: \"3.0.0\"))\n    ]\n    ```\n\n- macOS, iOS, tvOS, and Swift 5\n    ```swift\n    dependencies: [\n        .package(url: \"https://github.com/gumob/PunycodeSwift.git\", .upToNextMajor(from: \"2.1.1\"))\n    ]\n    ```\n\n### Carthage\n\nAdd the following to your `Cartfile` and follow [these instructions](https://github.com/Carthage/Carthage#adding-frameworks-to-an-application).\n\n- macOS, iOS, tvOS, watchOS, visionOS, and Swift 5\n\n    ```\n    github \"gumob/PunycodeSwift\" ~\u003e 3.0\n    ```\n\n- macOS, iOS, tvOS, and Swift 5\n\n    ```\n    github \"gumob/PunycodeSwift\" ~\u003e 2.0\n    ```\n\n- macOS, iOS, tvOS, and Swift 4\n\n    ```\n    github \"gumob/PunycodeSwift\" ~\u003e 1.0\n    ```\n\n### CocoaPods\n\nTo integrate TLDExtract into your project, add the following to your `Podfile`.\n\n- macOS, iOS, tvOS, watchOS, visionOS, and Swift 5.0\n\n    ```ruby\n    pod 'Punycode', '~\u003e 3.0'\n    ```\n\n- macOS, iOS, tvOS, and Swift 5.0\n\n    ```ruby\n    pod 'Punycode', '~\u003e 2.0'\n    ```\n\n- macOS, iOS, tvOS, and Swift 4.2\n\n    ```ruby\n    pod 'Punycode', '~\u003e 1.0'\n    ```\n\n## Usage\n\nFull documentation is available at [https://gumob.github.io/PunycodeSwift/swiftdoc/](https://gumob.github.io/PunycodeSwift/swiftdoc/).\n\n### Encode and decode IDNA:\n\n```swift\nimport Punycode\n\nvar sushi: String = \"寿司\"\n\nsushi = sushi.idnaEncoded!\nprint(sushi)  // xn--sprr0q\n\nsushi = sushi.idnaDecoded!\nprint(sushi)  // \"寿司\"\n```\n\n### Encode and decode Punycode directly:\n\n```swift\nimport Punycode\n\nvar sushi: String = \"寿司\"\n\nsushi = sushi.punycodeEncoded!\nprint(sushi)  // sprr0q\n\nsushi = sushi.punycodeDecoded!\nprint(sushi)  // \"寿司\"\n```\n\n## Copyright\n\nPunycode is released under MIT license, which means you can modify it, redistribute it or use it however you like.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgumob%2Fpunycodeswift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgumob%2Fpunycodeswift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgumob%2Fpunycodeswift/lists"}