Escape String Regexp
Escapes special characters in a string so it can be used literally inside a regular expression, wrapping regex metacharacters such as plus, question mark, brackets, parentheses, braces, caret, dollar, dot, pipe and star in backslash escapes.
Escape String Regexp: Escape-string-regexp at github.com/sindresorhus/escape-string-regexp is a free MIT regex metacharacter escaper for JavaScript, npm escape-string-regexp 5.0.0 Node.js >= 12, backslash-escapes plus question mark brackets parentheses braces caret dollar dot pipe and star so input matches literally inside a pattern, stable low-level maintenance with no npm release since Apr 2021, no sold commercial tier (data as of Nov 22, 2026).
*This is an affiliate link, we may earn a commission at no extra cost to you.
Is Escape String Regexp free?
Escape String Regexp: Escape-string-regexp is free open-source software released under the MIT License; the escape-string-regexp package latest 5.0.0 on npm requires Node.js >= 12. It backslash-escapes every regex metacharacter in an input string, so user-supplied text can be matched as a literal inside a pattern instead of being interpreted as operators. The npm release has not moved since Apr 2021 while repository commits continue into Sep 2026; the API is stable and maintained at a low level, so teams adopting it for new work should check current maintenance status. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). Check the official page for current status before relying on it.
Frequently Asked Questions
Is Escape String Regexp free?
The code is free to self-host, but a hosted plan from the vendor may not be. Escape String Regexp publishes its source, so cost depends on where you run it.
How much does Escape String Regexp cost?
Escape-string-regexp is free open-source software released under the MIT License; the escape-string-regexp package latest 5.0.0 on npm requires Node.js >= 12. It backslash-escapes every regex metacharacter in an input string, so user-supplied text can be matched as a literal inside a pattern instead of being interpreted as operators. The npm release has not moved since Apr 2021 while repository commits continue into Sep 2026; the API is stable and maintained at a low level, so teams adopting it for new work should check current maintenance status. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). Usage volume, plan limits and add-ons can push the bill above the figures shown, so confirm the current numbers on the vendor page before committing.
Where can I check Escape String Regexp's current pricing?
On Escape String Regexp's official site, linked from this page. We only publish a price after reading the vendor's own pricing page, so if this page shows no number, it means no traceable public price is on file — not that the tool is free.
What is Escape-string-regexp?
The input string is scanned character by character; any character that carries special meaning in a regular expression is prefixed with a backslash, so the resulting string can be inserted into a pattern and match itself exactly rather than acting as a quantifier or group.
How does pricing work?
The package installs free under MIT with no seat license; it escapes strings in-process, and commercial support would be outside the open-source project.
How does Escape String Regexp compare with other tools in Dev Workflow & Productivity?
Escape String Regexp is listed in the Dev Workflow & Productivity category, alongside 2 other tools we track here. 2 of those 2 peers have a dated price we read from the vendor's own pricing page, and the table below shows each tool's pricing model next to the exact rate on file — so the comparison is between published numbers, not between marketing pages.
| Tool | Pricing model | Key pricing on file | Price checked |
|---|---|---|---|
| Escape String Regexp | Open source | Escape-string-regexp is free open-source software released under the MIT License; the escape-string-regexp package latest 5.0.0 on npm requires Node.js >= 12. It backslash-escapes every regex metacharacter in an input string, so user-supplied text can be matched as a literal inside a pattern instead of being interpreted as operators. The npm release has not moved since Apr 2021 while repository commits continue into Sep 2026; the API is stable and maintained at a low level, so teams adopting it for new work should check current maintenance status. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). | Nov 22, 2026 |
| Slugify | Open source | Slugify is free open-source software released under the MIT License; the slugify package latest 1.6.9 on npm requires Node.js >= 8. It turns a title or name into a lowercase, separator-normalized URL slug, supporting transliteration, stopword removal and custom replacement maps, so headings and filenames yield stable web-safe identifiers. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). | Nov 22, 2026 |
| Camelcase | Open source | Camelcase is free open-source software released under the MIT License; the camelcase package latest 10.0.0 on npm requires Node.js >= 22. It splits a separated or spaced string into words and rejoins them as camelCase, with options for digits, acronyms and leading separators, so API responses and user input map cleanly to JavaScript object keys and variable names. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). | Nov 22, 2026 |
3 of these 3 entries carry a specific price we read from the vendor's site. Where the column says there is no dated price on file, we have not verified a rate — treat that as unknown rather than free, and check the vendor's page before you budget for it.
Full pricing breakdown
Escape String Regexp's source code is publicly available, so you can run or build it yourself. The project may also sell a paid hosted or cloud plan — check the official site for current pricing.
Open source does not always mean every hosted version is free.
Key pricing: Escape-string-regexp is free open-source software released under the MIT License; the escape-string-regexp package latest 5.0.0 on npm requires Node.js >= 12. It backslash-escapes every regex metacharacter in an input string, so user-supplied text can be matched as a literal inside a pattern instead of being interpreted as operators. The npm release has not moved since Apr 2021 while repository commits continue into Sep 2026; the API is stable and maintained at a low level, so teams adopting it for new work should check current maintenance status. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026).
Estimate your monthly bill with our calculator →Or build a full stack around your budget →Pricing Guides & Comparisons
Plan prices in these guides are read from each vendor's own pricing page, with the date we checked them.
⭐ Rate this tool
How would you rate this tool?
🚀 Never Miss a New AI Coding Tool
Join 1,000+ developers getting our weekly roundup: new AI tools, student free tiers, exclusive discounts, and side project deals. No spam, unsubscribe anytime.
Current Alternatives
Slugify
String slugifier for JavaScript that converts text into URL-friendly lowercase slugs, with separators, locale transliteration, stopword removal and custom replacements, used for slugs, filenames and heading URLs.
Camelcase
Converts a string to camelCase, joining words with the first letter capitalized after the first, handling separators, digits and acronym options, used to build JavaScript object keys and variable names.
Tool Information
- Official Websitegithub.com
- CategoryDev Workflow & Productivity
- PricingOpen Source
- Price checkedNov 22, 2026
