Monitor your RegExp consumption and provide suggestions to improve performance.
Important
Work in progress, not yet useable.
Install the package as a dependency:
pnpm i -D regex-doctorRun the script with --import regex-doctor/register:
node --import regex-doctor/register path/to/your/script.jsWhich will generate a report under .regex-doctor/output.json.
Then run:
npx regex-doctorTo inspect the report in browser.
MIT License © 2023-PRESENT Anthony Fu