{"id":32119771,"url":"https://github.com/pagequit/unwrap","last_synced_at":"2026-04-01T20:57:38.562Z","repository":{"id":60218958,"uuid":"535765778","full_name":"pagequit/unwrap","owner":"pagequit","description":"Yet another Option\u003cT\u003e and Result\u003cT, E\u003e, implemented for TypeScript.","archived":false,"fork":false,"pushed_at":"2024-03-12T18:50:44.000Z","size":98,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-20T18:35:11.441Z","etag":null,"topics":["deno","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/pagequit.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-09-12T16:56:49.000Z","updated_at":"2023-10-13T13:27:33.000Z","dependencies_parsed_at":"2024-03-12T19:47:14.549Z","dependency_job_id":null,"html_url":"https://github.com/pagequit/unwrap","commit_stats":{"total_commits":11,"total_committers":3,"mean_commits":"3.6666666666666665","dds":"0.36363636363636365","last_synced_commit":"a921a447f23c68815abba631bc3f2f020bfc4a6e"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/pagequit/unwrap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pagequit%2Funwrap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pagequit%2Funwrap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pagequit%2Funwrap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pagequit%2Funwrap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pagequit","download_url":"https://codeload.github.com/pagequit/unwrap/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pagequit%2Funwrap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31013965,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-27T02:58:54.984Z","status":"ssl_error","status_checked_at":"2026-03-27T02:58:46.993Z","response_time":164,"last_error":"SSL_read: 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":["deno","typescript"],"created_at":"2025-10-20T18:27:24.939Z","updated_at":"2026-03-27T03:15:41.323Z","avatar_url":"https://github.com/pagequit.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# unwrap\n\nYet another TypeScript `Option\u003cT\u003e` and `Result\u003cT, E\u003e` implementation.\n\n## Examples\n\n```ts\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nimport { Collection, None, Some } from \"https://deno.land/x/unwrap/mod.ts\";\n\ntype User = { name: string; age: number };\nconst users = Collection.from\u003cstring, User\u003e([\n  [\"#123\", { name: \"Alice\", age: 32 }],\n  [\"#321\", { name: \"Bob\", age: 23 }],\n]);\n\nconst alice = users.get(\"#123\");\nassertEquals(alice, Some({ name: \"Alice\", age: 32 }));\n\nconst charlie = users.get(\"#000\");\nassertEquals(charlie, None());\n\nconst conditionalMappedValue = users.get(\"#123\").and(users.get(\"#321\")).match({\n  Some: (user) =\u003e user.name + \" is \" + user.age.toString(),\n  None: () =\u003e \"never\",\n});\nassertEquals(conditionalMappedValue, \"Bob is 23\");\n```\n\n```ts\nimport { assertEquals } from \"https://deno.land/std/testing/asserts.ts\";\nimport { Result, teaCall } from \"https://deno.land/x/unwrap/mod.ts\";\n\ntype User = { name: string; age: number };\nconst charlie: Result\u003cUser, Error\u003e = teaCall(\n  JSON.parse,\n  '{ \"name\": \"Charlie\", \"age\": 33 }',\n);\nassertEquals(charlie.unwrap().name, \"Charlie\");\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpagequit%2Funwrap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpagequit%2Funwrap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpagequit%2Funwrap/lists"}