lurq

npm package

Home

safe-regex2

safe-regex2 is a utility for detecting potentially catastrophic exponential-time regular expressions by limiting the star height to 1. It is useful for ensuring that regex patterns do not lead to performance issues in applications. This package is a fork of the original safe-regex and is not a comprehensive checker.

lurq health score
71/100
Confidence
proven
Weekly downloads
12,832,756
Latest version
5.1.1
Last release
Apr 19, 2026
License
MIT

Should you depend on safe-regex2?

lurq's verdict: low

  • No known advisories

Check this from your coding agent

This page is a daily snapshot. lurq's verify tool checks safe-regex2 at the exact version your agent is about to install, and compat checks it against the rest of your stack. One command connects Claude Code, Cursor, VS Code and other agents:

npx lurqrun

Free to start. Quickstart

Upgrading safe-regex2

What each major version removed, renamed or re-signatured, from lurq's extraction of the published packages.

Other styling packages lurq scores

Scored from public signals (npm registry, GitHub, deps.dev and advisory databases). Data as of Sep 16, 2026; this page refreshes every 168 hours. Source repository.