Skip to content
Projects

unjs/magic-regexp

View on GitHub

unjs/magic-regexp has 4,338 GitHub stars and 73 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-08 14:58 UTC. Last push 2026-11-02.

How these counts are measured

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

What you can do

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

Measured star growth

in 24h
0
in 7 days
Collecting history
in 15 days
Collecting history
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

🦄 magic-regexp

npm version npm downloads Github Actions Codecov Bundlephobia nuxt.care health

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.

Explore related projects