{"id":22117729,"url":"https://github.com/kineticcafe/result","last_synced_at":"2026-01-16T07:53:59.842Z","repository":{"id":224599874,"uuid":"763685924","full_name":"KineticCafe/result","owner":"KineticCafe","description":"A Result type loosely based on Rust Result","archived":false,"fork":false,"pushed_at":"2024-10-01T03:45:45.000Z","size":221,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-17T03:44:23.936Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/KineticCafe.png","metadata":{"files":{"readme":"README.md","changelog":"Changelog.md","contributing":"Contributing.md","funding":null,"license":"licenses/APACHE-2.0.txt","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":"2024-02-26T18:32:58.000Z","updated_at":"2024-10-01T03:45:49.000Z","dependencies_parsed_at":"2024-04-01T04:25:45.538Z","dependency_job_id":"d8e5865d-dbba-4404-9f93-982738a00707","html_url":"https://github.com/KineticCafe/result","commit_stats":{"total_commits":41,"total_committers":3,"mean_commits":"13.666666666666666","dds":0.1707317073170732,"last_synced_commit":"bb013a6ed3a5d99c511d2e596dc67bef75eff7b4"},"previous_names":["kineticcafe/result"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KineticCafe%2Fresult","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KineticCafe%2Fresult/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KineticCafe%2Fresult/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KineticCafe%2Fresult/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KineticCafe","download_url":"https://codeload.github.com/KineticCafe/result/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227570095,"owners_count":17787849,"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":[],"created_at":"2024-12-01T13:38:59.552Z","updated_at":"2026-01-16T07:53:59.836Z","avatar_url":"https://github.com/KineticCafe.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @kineticcafe/result\n\n- code :: https://github.com/KineticCafe/result/tree/main/\n- issues :: https://github.com/KineticCafe/result/issues\n\n## Description\n\n@kineticcafe/result is another [`Result` type][wiki] implementation for\nTypescript, loosely based on Rust's [std::result][] type.\n\n`Result` types contain a value or possible error and should be used to return\ndifferent types for success and failure without using exceptions for normal flow\ncontrol. As the values in `Result`s are not directly accessible, there is\nexplicit error handling at the point of use, through matching (`Result#match`),\ntransformation (`Result#andThen`, `Result#orElse`), unwrapping (`Result#unwrap`,\n`Result#unwrapErr`), mapping (`Result#map`, `Result#mapErr`), or propagation\n(returning the result to callers).\n\nThe @kineticcafe/result library additionally offers some utilities for dealing\nwith arrays of `Result` types.\n\n## Synopsis\n\n```javascript\nimport { Ok, Err } from '@kineticcafe/result'\n\nOk(3) // A successful result\nErr('error') // A likely error\n```\n\n## Installation\n\n`@kineticcafe/result` should be added to your list of dependencies in\n`package.json`.\n\n```sh\nnpm add @kineticcafe/result@^0.6\n```\n\n## Semantic Versioning\n\n`@kineticcafe/result` uses a [Semantic Versioning][] scheme with one significant\nchange:\n\n- When PATCH is zero (`0`), it will be omitted from version references.\n\n## Contributing\n\n@kineticcafe/result [welcomes contributions][]. This project, like all Kinetic\nCommerce [open source projects][], is under the Kinetic Commerce Open Source\n[Code of Conduct][].\n\nThis project is licensed under the Apache Licence, version 2.0 and requires\ncertification via a Developer Certificate of Origin. See [Licence.md][] for more\ndetails.\n\n[welcomes contributions]: https://github.com/KineticCafe/result/blob/main/Contributing.md\n[code of conduct]: https://github.com/KineticCafe/code-of-conduct\n[open source projects]: https://github.com/KineticCafe\n[semantic versioning]: http://semver.org/\n[licence.md]: https://github.com/KineticCafe/result/blob/main/Licence.md\n[std::result]: https://doc.rust-lang.org/std/result/index.html\n[wiki]: https://en.wikipedia.org/wiki/Result_type\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkineticcafe%2Fresult","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkineticcafe%2Fresult","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkineticcafe%2Fresult/lists"}