RepositoryTypeScript
unjs

unjs/magic-regexp

A compiled-away, type-safe, readable RegExp alternative

4.3kstars
72forks
20issues
2views

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

2
TINIX TRENDING·Chủ đề: regexp

#2 Repository Của Tuần

2
TINIX TRENDING·Chủ đề: regular-expression

#2 Repository Của Tuần

4
TINIX TRENDING·Chủ đề: regex

#4 Repository Của Tuần

🦄 magic-regexp — RegExp đáng yêu hóa bằng TypeScript

Một giải pháp thay thế RegExp với cú pháp TypeScript đọc dễ, an toàn kiểu và được biên dịch thành RegExp thực thời.

magic-regexp là một thư viện TypeScript cho phép bạn viết biểu thức chính quy một cách trực quan, dễ đọc và an toàn kiểu — thay vì dùng chuỗi ký tự phức tạp. Dự án hỗ trợ biên dịch về RegExp gốc, tự động gán kiểu cho các nhóm bắt được, và hiển thị RegExp kết quả khi di chuột.

✨ Điểm nổi bật

  • Zero-dependency runtime: Không phụ thuộc thời gian chạy, rất nhẹ.
  • Biên dịch thành RegExp thuần: Có sẵn transform biên dịch về RegExp gốc.
  • Tự động gán kiểu cho nhóm bắt: Capture groups được gán kiểu TypeScript tự động.
  • Cú pháp tự nhiên: Dùng ngôn ngữ gần gũi với tiếng Anh để mô tả mẫu.
  • Hiển thị RegExp kết quả trên hover: Dễ dàng kiểm tra và gỡ lỗi.

💡 Vì sao đáng chú ý

magic-regexp không chỉ giúp viết RegExp dễ dàng hơn mà còn mang lại trải nghiệm phát triển an toàn hơn nhờ TypeScript. Rất phù hợp cho các dự án TypeScript muốn tránh lỗi cú pháp và tăng tính bảo trì.


#magic-regexp #TypeScript #RegExp #OpenSource #TiniX

Similar Projects

Discover other similar projects and AI models.

RepositoryTypeScript
ota-meshi/eslint-plugin-regexp

ESLint plugin for finding regex mistakes and style guide violations.

782
Oct 29, 2026
RepositoryRust
pemistahl/grex

A command-line tool and Rust library with Python bindings for generating regular expressions from user-provided test cases

8.3k
Feb 27, 2026
RepositoryRust
yoav-lavi/melody

Melody is a language that compiles to regular expressions and aims to be more readable and maintainable

4.7k
Nov 24, 2024
RepositoryJavaScript
mathiasbynens/emoji-regex

A regular expression to match all Emoji-only symbols as per the Unicode Standard.

1.9k
Sep 15, 2026
RepositoryGo
dlclark/regexp2

A full-featured regex engine in pure Go based on the .NET engine

1.2k
Oct 28, 2026
RepositoryTypeScript
DefinitelyTyped/DefinitelyTyped

The repository for high quality TypeScript type definitions.

51.4k
Oct 23, 2026
RepositoryTypeScript
reactive-resume/reactive-resume

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

45.0k
Oct 28, 2026
RepositoryTypeScript
hexojs/hexo

A fast, simple & powerful blog framework, powered by Node.js.

41.8k
Oct 26, 2026
RepositoryTypeScript
codpro2005/ts-regexp

A RegExp wrapper providing stronger type safety.

327
Sep 27, 2026