rslike
ts-belt
rslike | ts-belt | |
---|---|---|
2 | 10 | |
8 | 1,039 | |
- | - | |
7.1 | 0.0 | |
28 days ago | about 2 months ago | |
TypeScript | TypeScript | |
GNU General Public License v3.0 or later | 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.
rslike
-
RSLike@3. Well-known Symbols, Improved Usage of TypeScript, and Weighing More
To briefly recount the history of creating this marvel, while studying Rust, I saw the potential of these wrappers. And after being inspired, I decided to write such a marvel myself for JavaScript and use it in my projects (more on that later). Quite quickly, version 1 appeared, followed by a bunch of fixes (here), then version 2 emerged, introducing the cmp package and dbg. And only recently (April 10, 2024), version 3 for all packages saw the light of day: std, cmp, dbg.
-
It's done! Rust-like API in your JavaScript code
Full list available in Wiki: https://github.com/vitalics/rslike/wiki
ts-belt
- [AskJS] I've often read a lot of "if" statements can quickly turn into an anti pattern and convolute code. What are some strategies to avoid unnecessary "if" statements and ways to notice when you start to introduce this anti pattern?
-
libraries you are happy that you discovered them
check ts-belt, if you want really good TS support (it contains much more functions than remeda and it has awesome performance) https://github.com/mobily/ts-belt benchmarks: https://mobily.github.io/ts-belt/benchmarks/v3.12.0/macbook-pro-2021
- ts-belt - Fast, modern, and practical utility library for FP in TypeScript / Flow / JavaScript. (Faster than ramda, rambda, remeda and lodash/fp.)
- Fast, modern, and practical utility library for FP in TypeScript. (Faster than ramda, rambda, remeda and lodash/fp.)
- Ts-belt – Fast, modern, and practical utility library for FP in TypeScript
-
Features of a dream programming language: 2nd draft.
Piping, or some form of it. But always top-to-bottom or left-to-right. Inspired by Bash, and functional programming with pipes (Elixir, BuckleScript, and ts-belt). Data-first instead of data-last.
-
[AskJS] Is anyone using Monads (or other advanced functional programming techniques) in production code? If so, what are you using them for?
try ts-belt https://mobily.github.io/ts-belt/ which has pragmatic approach and is easier to learn than fp-ts
-
ts-belt → fast, modern, and practical utility library for FP in TypeScript/Flow/JavaScript
Repo: https://github.com/mobily/ts-belt Documentation: https://mobily.github.io/ts-belt/
-
TS Belt - fast, modern, and practical utility library for FP in TypeScript
Let me know if you're willing to use ts-belt in your project! Also, don't forget to give a star to ts-belt on Github. Any feedback or suggestions are appreciated as well.
What are some alternatives?
good-try - Tries to execute a sync/async function, returns a specified default value if the function throws
io-ts - Runtime type system for IO decoding/encoding
wari - A type-safe way to create and handle errors.
pratica - 🥃 Functional Algebraic Data Types
boxed - Essential building-blocks for functional & safe TypeScript code
Immer - Create the next immutable state by mutating the current one
common - A minimal library that defines primitive building blocks of PHP code.
monads - Option, Result, and Either types for TypeScript - Inspired by Rust 🦀
tool-conventions - Conventions supporting interoperatibility between tools working with WebAssembly.
matechs-effect - A Fully-fledged functional effect system for typescript with a rich standard library [Moved to: https://github.com/Effect-TS/core]
genType - Auto generation of idiomatic bindings between Reason and JavaScript: either vanilla or typed with TypeScript/FlowType.
monio - The most powerful IO monad implementation in JS, possibly in any language!