magic-regexp

A compiled-away, type-safe, readable RegExp alternative
GitHub
4.05k
Created 3 years ago, last commit 4 days ago
18 contributors
782 commits
Stars added on GitHub, month by month
4
5
6
7
8
9
10
11
12
1
2
3
2024
2025
Stars added on GitHub, per day, on average
Yesterday
=
Last week
-0.1
/day
Last month
+0.4
/day
Last 12 months
+1.2
/day
npmPackage on NPM
Monthly downloads on NPM
4
5
6
7
8
9
10
11
12
1
2
3
2024
2025
README

🦄 magic-regexp

npm version npm downloads Github Actions Codecov Bundlephobia

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

Features

  • Runtime is zero-dependency and ultra-minimal
  • Ships with transform to compile to pure RegExp
  • Automatically typed capture groups
  • Natural language syntax
  • Generated RegExp displays on hover

📖  Read more

💻 Development

  • Clone this repository
  • Enable Corepack using corepack enable (use npm i -g corepack for Node.js < 16.10)
  • Install dependencies using pnpm install
  • Run interactive tests using pnpm dev

Similar packages

License

Made with ❤️

Published under MIT License.