{"id":30719839,"url":"https://github.com/dankinsoid/unwrapoperator","last_synced_at":"2025-09-03T10:42:24.136Z","repository":{"id":56925425,"uuid":"201267772","full_name":"dankinsoid/UnwrapOperator","owner":"dankinsoid","description":"Convenient operator for optional values","archived":false,"fork":false,"pushed_at":"2019-08-16T13:32:17.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-10T19:46:03.660Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dankinsoid.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}},"created_at":"2019-08-08T13:46:22.000Z","updated_at":"2019-08-16T13:32:19.000Z","dependencies_parsed_at":"2022-08-21T06:20:16.867Z","dependency_job_id":null,"html_url":"https://github.com/dankinsoid/UnwrapOperator","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/dankinsoid/UnwrapOperator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dankinsoid%2FUnwrapOperator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dankinsoid%2FUnwrapOperator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dankinsoid%2FUnwrapOperator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dankinsoid%2FUnwrapOperator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dankinsoid","download_url":"https://codeload.github.com/dankinsoid/UnwrapOperator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dankinsoid%2FUnwrapOperator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273431361,"owners_count":25104491,"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","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-09-03T10:42:23.284Z","updated_at":"2025-09-03T10:42:24.114Z","avatar_url":"https://github.com/dankinsoid.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UnwrapOperator\n[![CI Status](https://img.shields.io/travis/Voidilov/UnwrapOperator.svg?style=flat)](https://travis-ci.org/Voidilov/UnwrapOperator)\n[![Version](https://img.shields.io/cocoapods/v/UnwrapOperator.svg?style=flat)](https://cocoapods.org/pods/UnwrapOperator)\n[![License](https://img.shields.io/cocoapods/l/UnwrapOperator.svg?style=flat)](https://cocoapods.org/pods/UnwrapOperator)\n## Description\nConvenient operator for optional values\n\t\n## Usage\n\n```swift\nvar optionalValue: Int?\n...\nlet value: Int = try optionalValue~!\n```\n\n```swift\nvar optionalInt: Int?\nvar optionalString: String?\n\ntry? someFunc(value1: optionalInt~!, value2: optionalString~!)\n//instead of \n//if let int = optionalInt, let string = optionalString {\n//\tsomeFunc(value1: int, value2: string)\n//}\n...\nfunc someFunc(value1: Int, value2: String)\n```\n\n`OptionalProtocol` - protocol that allows you to work with `Opational\u003cWrapped\u003e` in some interesting ways:\n```swift\nextension Array where Element: OptionalProtocol {...}\n```\n## Installation\n1.  [CocoaPods](https://cocoapods.org)\nAdd the following line to your Podfile:\n\t```ruby\n\tpod 'UnwrapOperator'\n\t```\n\tand run `pod update` from the podfile directory first.\n\t\n2. [Swift Package Manager](https://github.com/apple/swift-package-manager)\nCreate a `Package.swift` file.\n\t```swift\n\t// swift-tools-version:5.0\n\timport PackageDescription\n\t\n\tlet package = Package(\n\t  name: \"SomeProject\",\n\t  dependencies: [\n\t    .package(url: \"https://github.com/dankinsoid/UnwrapOperator.git\", from: \"0.1.0\")\n\t  ],\n\t  targets: [\n\t    .target(name: \"SomeProject\", dependencies: [\"UnwrapOperator\"])\n\t  ]\n\t)\n\t```\n\t```ruby\n\t$ swift build\n\t```\n## Author\n\nVoidilov, voidilov@gmail.com\n\n## License\n\nUnwrapOperator is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdankinsoid%2Funwrapoperator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdankinsoid%2Funwrapoperator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdankinsoid%2Funwrapoperator/lists"}