TypeScript MIT

magic-regexp

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

U

unjs

Dernière activité 28 sept. 2026
unjs/magic-regexp

4,3 k

étoiles

74

forks

24

issues ouvertes

hacktoberfestregexregexpregular-expressiontypescript

Ce README est souvent en anglais.

🦄 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.

Projets similaires

A RegExp wrapper providing stronger type safety.

TypeScriptregexregexpregular-expression
Ccodpro2005
327 étoiles3

Extended JavaScript regular expressions

JavaScriptregexregexpregular-expression
Sslevithan
3,3 k étoiles275

Learn RegEx step by step, from zero to advanced.

TypeScriptguidelearnregex
Aaykutkardas
4,1 k étoiles270