2 مستودعات
Regular expression generation that maps captured groups to specific TypeScript data types.
Distinct from Regular Expression Generators: Distinct from general generators by adding static type mapping to the generated expressions.
Explore 2 awesome GitHub repositories matching development tools & productivity · Type-Safe Regular Expressions. Refine with filters or upvote what's useful.
Arktype is a TypeScript runtime validation library and schema orchestrator. It synchronizes TypeScript types with runtime data validation, allowing users to define type-safe schemas that ensure unknown data adheres to specific structures during application execution. The project distinguishes itself by using set-theory type analysis to determine intersections and subtype compatibility, alongside JIT-compiled validation functions for optimized performance. It supports advanced type modeling through branded type constraints, recursive alias resolution, and the ability to generate runtime valida
Infers precise string types from regular expression syntax to provide static safety for matching.
magic-regexp is a type-safe regular expression builder and TypeScript compiler. It allows for the construction of JavaScript regular expressions using a readable syntax that automatically generates precise types for captured groups, ensuring predictable data extraction. The project functions as a build-time transformer that converts custom pattern syntax into standard regular expression objects. This static compilation removes runtime overhead by shifting the transformation logic to the build process. The tool covers named capture group generation and a readable construction API that replace
Compiles readable chainable regex syntax into native RegExp objects with automatic TypeScript type inference for capture groups.