{"repo":"slavovojacek/monads","free":true,"listed":false,"github":"https://github.com/slavovojacek/monads","clone":"git clone https://github.com/slavovojacek/monads.git","description":"Option, Result, and Either types for TypeScript - Inspired by Rust 🦀","language":"TypeScript","stars":887,"topics":["monads","javascript","typescript","types","option","result","rust","nodejs","either","node"],"license":"MIT","category":"dev-tools","readme_excerpt":"If you use this repo, star it ✨ --- Option, Result, and Either types for JavaScript 🦀 Inspired by Rust Zero dependencies • Lightweight • Functional --- Install Getting started The Option type Option represents an optional value: every Option is either Some and contains a value, or None, and does not. [!NOTE] Full documentation here: Option The Result type Result represents a value that is either a success (Ok) or a failure (Err). [!NOTE] Full documentation here: Result The Either type Either represents a value that is either Left or Right. It is a powerful way to handle operations that can result in two distinctly different types of outcomes. [!NOTE] Full documentation here: Either","default_branch":null,"files":null,"tree":[],"storefront":"/r/slavovojacek","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/slavovojacek/monads/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}