{"id":24302878,"url":"https://github.com/digipolitan/string-case-swift","last_synced_at":"2026-05-26T20:32:08.179Z","repository":{"id":98675946,"uuid":"95432432","full_name":"Digipolitan/string-case-swift","owner":"Digipolitan","description":null,"archived":false,"fork":false,"pushed_at":"2019-01-06T22:13:02.000Z","size":13,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-06T14:31:34.123Z","etag":null,"topics":["camelcase","snakecase","string-casing","swift"],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Digipolitan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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-06-26T09:47:52.000Z","updated_at":"2020-10-20T13:18:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"f5feb969-d244-4804-ae33-e7be90696409","html_url":"https://github.com/Digipolitan/string-case-swift","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Digipolitan/string-case-swift","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Digipolitan%2Fstring-case-swift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Digipolitan%2Fstring-case-swift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Digipolitan%2Fstring-case-swift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Digipolitan%2Fstring-case-swift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Digipolitan","download_url":"https://codeload.github.com/Digipolitan/string-case-swift/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Digipolitan%2Fstring-case-swift/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33538659,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"ssl_error","status_checked_at":"2026-05-26T15:22:15.568Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["camelcase","snakecase","string-casing","swift"],"created_at":"2025-01-17T00:19:58.033Z","updated_at":"2026-05-26T20:32:08.162Z","avatar_url":"https://github.com/Digipolitan.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"StringCase\n=================================\n\n[![Swift Version](https://img.shields.io/badge/swift-4.2-orange.svg?style=flat)](https://developer.apple.com/swift/)\n[![Swift Package Manager](https://rawgit.com/jlyonsmith/artwork/master/SwiftPackageManager/swiftpackagemanager-compatible.svg)](https://swift.org/package-manager/)\n[![Twitter](https://img.shields.io/badge/twitter-@Digipolitan-blue.svg?style=flat)](http://twitter.com/Digipolitan)\n\nString extension to write camelCase string and snakeCase string\n\n## Installation\n\n### SPM\n\nTo install StringCase with SwiftPackageManager, add the following lines to your `Package.swift`.\n\n```swift\nlet package = Package(\n    name: \"XXX\",\n    products: [\n        .library(\n            name: \"XXX\",\n            targets: [\"XXX\"]),\n    ],\n    dependencies: [\n        .package(url: \"https://github.com/Digipolitan/string-case-swift.git\", from: \"1.0.0\")\n    ],\n    targets: [\n        .target(\n            name: \"XXX\",\n            dependencies: [\"StringCase\"])\n    ]\n)\n```\n\n## The Basics\n\n- CamelCase\n\nTransform the current string to a camel case string as follow :\n\n```swift\nlet res = \"i love swift\".camelCased()\nprint(\"\\(res)\") // Will print iLoveSwift\n```\n\n```swift\nlet res = \" i love swift  \".camelCased(.capitalized)\nprint(\"\\(res)\") // Will print ILoveSwift\n```\n\n- SnakeCase\n\nTransform the current string to a snake case string as follow :\n\n```swift\nlet res = \"i love swift\".snakeCased()\nprint(\"\\(res)\") // Will print i_love_swift\n```\n\n```swift\nlet res = \"i_LOVE SWIFT\".snakeCased()\nprint(\"\\(res)\") // Will print i_love_swift\n```\n\n```swift\nlet res = \" iLove    Swift \".snakeCased(.upper)\nprint(\"\\(res)\") // Will print I_LOVE_SWIFT\n```\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for more details!\n\nThis project adheres to the [Contributor Covenant Code of Conduct](CODE_OF_CONDUCT.md).\nBy participating, you are expected to uphold this code. Please report\nunacceptable behavior to [contact@digipolitan.com](mailto:contact@digipolitan.com).\n\n## License\n\nStringCase is licensed under the [BSD 3-Clause license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigipolitan%2Fstring-case-swift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigipolitan%2Fstring-case-swift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigipolitan%2Fstring-case-swift/lists"}