</>PackageGraphPackageGraph

escape-string-regexp

npmv5.0.0

Escape RegExp special characters

0
Weekly downloads
2
Dependents
3
Dependencies
4/100
Popularity

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.

eslintrxjsjitiescape-string-reg…
escape-string-regexp dependencies dependents

Dependencies

Dev (3)

ava ^3.15.0tsd ^0.14.0xo ^0.38.2

Used by

Popular packages that depend on escape-string-regexp.

Alternatives to escape-string-regexp

is-globnpm

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

0/wk2 dependentsMIT
is-extglobnpm

Returns true if a string has an extglob.

0/wk1 dependentsMIT
magic-stringnpm

Modify strings, generate sourcemaps

153.8M/wk1 dependentsMITTS
escape-htmlnpm

Escape string for use in HTML

93.4M/wk3 dependentsMIT
pg-connection-stringnpm

Functions for dealing with a PostgreSQL connection string

40.2M/wk1 dependentsMITTS
locate-characternpm

Get the line and column number of a specific character in a string

4.1M/wk1 dependentsMITTS
sql-escapernpm

🛡️ Faster SQL escape and format for JavaScript (Node.js, Bun, and Deno).

3.9M/wk1 dependentsMITTS
fast-levenshteinnpm

Efficient implementation of Levenshtein algorithm with locale-specific collator support.

0/wk1 dependentsMIT
natural-comparenpm

Compare strings containing a mix of letters and numbers in the way a human being would in sort order.

0/wk1 dependentsMIT
path-to-regexpnpm

Express style path to RegExp utility

0/wk1 dependentsMITTS
safe-regex2npm

detect possibly catastrophic, exponential-time regular expressions

0/wk1 dependentsMITTS
prelude-lsnpm

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.

0/wk1 dependentsMIT

Frequently installed together

Version history

VersionPublishedLicense
5.0.0latest5 years agoMIT
4.0.06 years agoMIT
3.0.06 years agoMIT
2.0.07 years agoMIT
1.0.510 years agoMIT
1.0.410 years agoMIT
1.0.311 years agoMIT
1.0.212 years agoMIT
1.0.112 years agoMIT
1.0.012 years agoMIT

Maintainers

Keywords

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.