mathiasbynens/regenerate

Generate JavaScript-compatible regular expressions based on a given set of Unicode symbols or code points.

63
/ 100
Established

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.

Stale 6m
Maintenance 0 / 25
Adoption 22 / 25
Maturity 25 / 25
Community 16 / 25

How are scores calculated?

Stars

375

Forks

39

Language

JavaScript

License

MIT

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.