{"id":16639334,"url":"https://github.com/orlowdev/or-else","last_synced_at":"2025-04-05T01:14:50.360Z","repository":{"id":40708491,"uuid":"313616156","full_name":"orlowdev/or-else","owner":"orlowdev","description":"A set of tools for capturing and maintaining multiple application flows.","archived":false,"fork":false,"pushed_at":"2023-01-06T16:23:12.000Z","size":921,"stargazers_count":2,"open_issues_count":10,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-03-26T12:04:37.983Z","etag":null,"topics":[],"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/orlowdev.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":".github/contributing.md","funding":".github/funding.yml","license":"license.md","code_of_conduct":".github/code_of_conduct.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/codeowners","security":".github/security.md","support":null},"funding":{"github":null,"patreon":"orlovedev","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2020-11-17T12:42:42.000Z","updated_at":"2022-05-13T21:36:13.000Z","dependencies_parsed_at":"2023-02-06T06:31:03.875Z","dependency_job_id":null,"html_url":"https://github.com/orlowdev/or-else","commit_stats":null,"previous_names":["orlovedev/or-else"],"tags_count":1,"template":false,"template_full_name":"orlowdev/template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orlowdev%2For-else","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orlowdev%2For-else/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orlowdev%2For-else/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orlowdev%2For-else/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orlowdev","download_url":"https://codeload.github.com/orlowdev/or-else/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247271527,"owners_count":20911587,"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-10-12T07:05:45.501Z","updated_at":"2025-04-05T01:14:50.338Z","avatar_url":"https://github.com/orlowdev.png","language":"TypeScript","funding_links":["https://patreon.com/orlovedev"],"categories":[],"sub_categories":[],"readme":"# ||else\n\n[![Maintainability](https://api.codeclimate.com/v1/badges/ce5601f3a66994877fb0/maintainability)](https://codeclimate.com/github/orlovedev/or-else/maintainability)\n[![codecov](https://codecov.io/gh/orlovedev/or-else/branch/main/graph/badge.svg)](https://codecov.io/gh/orlovedev/or-else)\n\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n[![versioning: or-release](https://img.shields.io/badge/versioning-%7C%7Cr-E76D83.svg)](https://github.com/orlovedev/or-release)\n\nA set of tools for capturing and maintaining multiple application flows.\n\n## Contents\n\n- `Switch` works like the ordinary `switch`: you provide the cases and the default value, it jumps in to the proper case or falls through to the default result. The cases may be matched against a **value** or with a **function**.\n- `LazySwitch` is like the previous `Switch` but it accepts the value to be matched against provided prefixes in a `match` method. The cases may be matched against a **value** or with a **function**.\n- `Either` is a monad with a `Left` and a `Right` state that can be used for capturing uncommon behaviour or maintaining two flows of application execution at once.\n\n## Installation\n\n```sh\nyarn add or-else\n```\n\nor\n\n```sh\nnpm i -S or-else\n```\n\n## Examples\n\nTBD\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forlowdev%2For-else","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forlowdev%2For-else","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forlowdev%2For-else/lists"}