mathiasbynens/regenerate
Generate JavaScript-compatible regular expressions based on a given set of Unicode symbols or code points.
Handles astral plane Unicode symbols (beyond the BMP) by intelligently converting them into ES5-compatible UTF-16 surrogate pair sequences, with options for optimized output when working with known constraints. Provides a fluent API for building and manipulating character sets through operations like `addRange()`, `remove()`, and `intersection()`, then outputs optimized regex patterns or raw code point arrays. Runs in Node.js, browsers, and various JavaScript runtimes via multiple module formats (CommonJS, AMD, global).
375 stars and 152,673,923 monthly downloads. Used by 2 other packages. No commits in the last 6 months. Available on npm.
Stars
375
Forks
39
Language
JavaScript
License
MIT
Category
Last pushed
Dec 29, 2021
Monthly downloads
152,673,923
Commits (30d)
0
Reverse dependents
2
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/ai-coding/mathiasbynens/regenerate"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Related tools
chrishoermann/zod-prisma-types
Generator creates zod types for your prisma models with advanced validation
unjs/knitwork
🧶 Utilities to generate safe JavaScript code.
microsoft/ts-gyb
Generating native code interfaces from TypeScript
retejs/rete-studio
A general-purpose code generation tool powered by Rete.js
evoluteur/evolutility-ui-jquery
Model-driven Web UI for CRUD using REST or localStorage.