sindresorhus/escape-string-regexp
Escape RegExp special characters
Stale — last commit 1y ago
last commit was 1y ago; no tests detected in the complete Git tree
No blocking repository signals were found — inspect the evidence before forking.
Documented and popular — useful reference codebase to read through.
last commit was 1y ago; Scorecard "Branch-Protection" is 0/10…
- ⚠Stale — last commit 1y ago
- ⚠Concentrated ownership — top contributor handles 55% of recent commits
- ⚠No tests detected in the complete Git tree
- ⚠Scorecard: marked unmaintained (0/10)
- ⚠Scorecard: default branch unprotected (0/10)
- ✓8 active contributors
- ✓MIT licensed
- ✓CI configured
What would improve this?
- •Use as dependency Mixed to Healthy if: 1 commit in the last 365 days
- •Deploy as-is Mixed to Healthy if: 1 commit in the last 180 days; bring "Branch-Protection" to ≥3/10 (see scorecard report)
Computed from maintenance signals — commit recency, contributor breadth, bus factor, license, CI, tests, cross-checked against dependency CVEs from deps.dev and OpenSSF Scorecard
Informational only. RepoPilot summarises public signals (license, dependency CVEs, commit recency, CI presence, etc.) at the time of analysis. Signals can be incomplete or stale. Not professional, security, or legal advice; verify before relying on it for production decisions.
Repository brief
Verdict
What it is
Start here
Get running
Key cautions & unknowns
Sources
Evidence note
Full context for agent files, or a concise PDF for human review.
View complete agent reference
Open to load every section of the agent reference.
Want this for your own repo?
Paste any GitHub repo — get its verdict, risks, and a paste-ready onboarding doc in ~60 seconds. Free, no sign-up.
Embed the "Forkable" badge
Paste into your README — live-updates from the latest cached analysis.
[](https://repopilot.app/r/sindresorhus/escape-string-regexp)Paste at the top of your README.md — renders inline like a shields.io badge.
▸Preview social card
This card auto-renders when someone shares https://repopilot.app/r/sindresorhus/escape-string-regexp on X, Slack, or LinkedIn.
Ask AI about sindresorhus/escape-string-regexp
Grounded in the actual source code. Pick a starter question or write your own.
Similar JavaScript repos
Other mixed-signal JavaScript repos by stars.
More from sindresorhus
See allRecent Q&A
Public conversations other people have had about this repo.
- How is the function exported? Is it a default export or a named one?2 messages · 9/1/2026
- How does this function validate its input — does it throw on bad arguments?2 messages · 9/1/2026
- What license is this released under and who is the author?2 messages · 9/1/2026
- What edge cases are covered in the tests, especially around hyphens?2 messages · 9/1/2026
- What types does the function expect and return?2 messages · 9/1/2026
- Show me the actual regex implementation that escapes special characters.2 messages · 9/1/2026
- How is the function exported? Is it a default export or a named one?2 messages · 8/1/2026
- How does this function validate its input — does it throw on bad arguments?2 messages · 8/1/2026
Embed this chat in your README
Drop this iframe anywhere — the widget runs against the same live analysis cache as the main app.
<iframe src="https://repopilot.app/embed/sindresorhus/escape-string-regexp" width="100%" height="500" style="border:1px solid #d0d7de; border-radius:8px;" allow="microphone" loading="lazy" ></iframe>