escape-string-regexp
npmv5.0.0Escape RegExp special characters
Overview
escape-string-regexp is an npm package that escape RegExp special characters. The latest version is 5.0.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need escape RegExp special characters and value a focused solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Clear open-source license (MIT).
- Lean dependency tree (3 direct dependencies).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of escape-string-regexp.
Dependencies
Dev (3)
Used by
Popular packages that depend on escape-string-regexp.
Alternatives to escape-string-regexp
Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a bet
Returns true if a string has an extglob.
Modify strings, generate sourcemaps
Escape string for use in HTML
Functions for dealing with a PostgreSQL connection string
Get the line and column number of a specific character in a string
🛡️ Faster SQL escape and format for JavaScript (Node.js, Bun, and Deno).
Efficient implementation of Levenshtein algorithm with locale-specific collator support.
Compare strings containing a mix of letters and numbers in the way a human being would in sort order.
Express style path to RegExp utility
detect possibly catastrophic, exponential-time regular expressions
prelude.ls is a functionally oriented utility library. It is powerful and flexible. Almost all of its functions are curried. It is written in, and is the recommended base library for, LiveScript.
Frequently installed together
An AST-based pattern checker for JavaScript.
Prettier is an opinionated code formatter
TypeScript definitions for node
Packs ECMAScript/CommonJs/AMD modules for the browser. Allows you to split your codebase into multiple bundles, which can be loaded on demand. Supports loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.
BDD/TDD assertion library for node.js and the browser. Test framework agnostic.
Runtime typescript and ESM support for Node.js
the most correct and second fastest glob implementation in JavaScript
The semantic version parser used by npm.
Lightweight debugging utility for Node.js and the browser
TypeScript-first schema declaration and validation library with static type inference
Lodash modular utilities.
React is a JavaScript library for building user interfaces.
Version history
| Version | Published | License |
|---|---|---|
| 5.0.0latest | 5 years ago | MIT |
| 4.0.0 | 6 years ago | MIT |
| 3.0.0 | 6 years ago | MIT |
| 2.0.0 | 7 years ago | MIT |
| 1.0.5 | 10 years ago | MIT |
| 1.0.4 | 10 years ago | MIT |
| 1.0.3 | 11 years ago | MIT |
| 1.0.2 | 12 years ago | MIT |
| 1.0.1 | 12 years ago | MIT |
| 1.0.0 | 12 years ago | MIT |
Maintainers
Funding
Frequently asked questions
How do I install escape-string-regexp?
Run `npm install escape-string-regexp` to add escape-string-regexp to your npm project.
What license is escape-string-regexp released under?
escape-string-regexp is distributed under the MIT license.
How popular is escape-string-regexp?
escape-string-regexp has approximately 0 downloads per week and 2 known dependent packages.