npm package
Homeescape-string-regexp
escape-string-regexp is a utility for escaping special characters in strings intended for use in regular expressions. It is useful when you need to safely include user input or dynamic strings in regex patterns. This package helps prevent unintended regex behavior by ensuring that special characters are treated as literals.
- lurq health score
- 50/100
- Confidence
- unproven
- Weekly downloads
- 258,137,514
- Latest version
- 5.0.0
- Last release
- Apr 17, 2021
- License
- MIT
Should you depend on escape-string-regexp?
lurq's verdict: low
- No known advisories
Check this from your coding agent
This page is a daily snapshot. lurq's verify tool checks escape-string-regexp 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 escape-string-regexp
What each major version removed, renamed or re-signatured, from lurq's extraction of the published packages.
- 4.0.0 → 5.0.0diff ready
- 3.0.0 → 4.0.0diff ready
- 2.0.0 → 3.0.0being extracted
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.