exceptionally
monads
exceptionally | monads | |
---|---|---|
1 | 3 | |
35 | 706 | |
- | 2.1% | |
4.4 | 7.2 | |
about 1 year ago | 3 days ago | |
TypeScript | TypeScript | |
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
exceptionally
-
Handling errors like a pro in TypeScript
I one also thought that handlong errors works better when havung a good structure but that didn't really plan out. I stopped throwing anything inside my codebases. The only way to get full knowledge over the possible outcomes of a function call is if the function also returns exceptions instead of throwing them. TypeScript will not help you if something gets thrown. I wrote my own little library to handle this: https://github.com/ivanhofer/exceptionally I recently discovered that there are also other solutions out there that do something similar. With such an approach you will also know after 5 and more levels of function calls if your code really covers all possible outcomes. Really useful for refactoings!
monads
-
How should I handle arrays of Result monads? Should I unwrap values?
(I've been using the Result library from sniptt-official/monads ).
- oxide.ts - my Rust-inspired Option/Result and match library for TypeScript - Version 1.0 Release
- Zero-Dependency Option, Result, and Either Types for JavaScript and TypeScript
What are some alternatives?
burrido - Do-notation for JavaScript
pg-mem - An in memory postgres DB instance for your unit tests
solidarity - Solidarity is an environment checker for project dependencies across multiple machines.
eta - The Eta Programming Language, a dialect of Haskell on the JVM
ts-belt - π§ Fast, modern, and practical utility library for FP in TypeScript.
bulletproof-nodejs - Implementation of a bulletproof node.js API π‘οΈ
crystagiri - An Html parser library for Crystal (like Nokogiri for Ruby)
deno-dom - Browser DOM & HTML parser in Deno
ts-results - A typescript implementation of Rust's Result object.
utilities - Repository of utilities for deno written in typescript for trailmixπ€π¦π£πΌ
supermemo - π§βπ A JavaScript/TypeScript implementation of the SuperMemo 2 (SM2) algorithm for spaced based repetition flashcards.
Nest - A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript π