regexpp: ECMAScript Regular Expression Parser and Validator
JSON →`regexpp` is a JavaScript library engineered for parsing and validating ECMAScript regular expressions, generating a detailed Abstract Syntax Tree (AST) that precisely reflects the regex's structure. The current stable version, 3.2.0, actively tracks and incorporates the latest updates from the ECMAScript specification, supporting features up to ES2022, such as new Unicode property escapes and the 'd' flag. Its release cadence is primarily tied to ECMAScript standard updates and Node.js LTS cycles, with minor versions typically introducing new specification features and major versions often signifying breaking changes like Node.js version deprecations or significant AST structure adjustments. Key differentiators include strict adherence to ECMAScript syntax, robust validation capabilities, and a comprehensive visitor pattern for AST traversal, making it an indispensable tool for linters, static analysis utilities, and code transformation projects.
Traffic · last 30 days ↓33% vs prev 7d
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇷 France