2 repository-uri
JavaScript-specific implementations of pattern matching and string validation logic.
Distinct from JavaScript Implementations: Specializes JavaScript implementations to focus specifically on the domain of pattern matching.
Explore 2 awesome GitHub repositories matching part of an awesome list · Pattern Matching Implementations. Refine with filters or upvote what's useful.
JSVerbalExpressions is a JavaScript regex builder and construction library that provides a domain-specific language for assembling complex regular expressions. It replaces the use of dense string literals with a programmatic interface and readable method chains. The library allows for the creation of search patterns and validation rules through a fluent API. This approach enables the development of regular expressions that are maintainable and easy for other developers to understand.
Provides an intuitive syntax for defining text search and validation rules within JavaScript.
This is a TC39 proposal to add declarative pattern matching syntax to the ECMAScript language. It introduces a match expression that allows developers to inspect and branch on data structures using patterns with destructuring, guards, and logical combinators. The proposal defines a custom matcher protocol via a well-known symbol, enabling objects to implement user-defined matching logic with arbitrary extraction and decomposition. The proposal supports matching against literal primitives using SameValue equality with special handling for signed zero and NaN, as well as relational comparison
Proposes native ECMAScript pattern matching syntax with destructuring, guards, and logical combinators.