ts-pattern
robot
Our great sponsors
ts-pattern | robot | |
---|---|---|
38 | 4 | |
10,832 | 1,888 | |
- | - | |
8.5 | 4.1 | |
10 days ago | about 1 month ago | |
TypeScript | JavaScript | |
MIT License | BSD 2-clause "Simplified" 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.
ts-pattern
-
You Don't Need React
ts-pattern has been a decent band-aid for the lack of native pattern matching, but obviously has downsides that could be avoided if it was built into the language.
https://github.com/gvergnaud/ts-pattern
- Stop nesting ternaries
-
Building React Components Using Unions in TypeScript
ts-pattern
- Pattern Matching Library for TypeScript
-
TypeScript Is Surprisingly OK for Compilers
With how powerful the type system is you can implement pattern matching via a library pretty convincingly, https://github.com/gvergnaud/ts-pattern is definitely the go-to. That being said pattern matching is hardly a requirement for being ok for implementing compilers.
-
How to achieve type safety here possible without "type hacks"?
https://github.com/gvergnaud/ts-pattern might help
- ts-pattern v5
-
[AskJS] C# in every Node.js job posting?
There's a proposal to add something like that to JavaScript but it's been stuck in limbo since 2017 although there are libraries like ts-pattern which implement it already.
- Simplifying Dynamic Classes in Vue with the class-variance-authority library | cdruc.com
- Rust Appreciation Thread
robot
- Robot – A fast 1kB functional library for creating Finite State Machines
-
libraries you are happy that you discovered them
robot3: https://github.com/matthewp/robot (finite state machines)
-
I built a card game with framer-motion and xstate 👀
I would prefer a more functional approach to defining a state machine, something like this: https://github.com/matthewp/robot.
-
🚀10 Trending projects on GitHub for web developers - 15th October 2021
Please star the repository on GitHub.
What are some alternatives?
pattern-grab - 🤛🏻 Regular Expression Data Grabber
wonka - 🎩 A tiny but capable push & pull stream library for TypeScript and Flow
ts-adt - Generate Algebraic Data Types and pattern matchers
tiny-cnn - header only, dependency-free deep learning framework in C++14
await-to-js - Async await wrapper for easy error handling without try-catch
crux - A collection of small, focussed, utilities to help maintain decoupled and lightweight code in the browser.
union-types - A Typescript library for creating discriminating union types.
qunit - 🔮 An easy-to-use JavaScript unit testing framework.
ts-option
state-machine - A small Javascript Promise-based Finite State Machine implementation
typescript-coverage-report - Node command tool to generate TypeScript coverage report
AI-Toolbox - A C++ framework for MDPs and POMDPs with Python bindings