---
title: "escape-string-regexp 5.0.0"
description: "Latest published version of escape-string-regexp is 5.0.0, licensed MIT. Current as of our last registry check."
url: https://inlinr.com/packages/escape-string-regexp
lang: en
---

[Packages](https://inlinr.com/packages)

# escape-string-regexp

5.0.0 · 17 Apr 2021 MIT 480.6M / week [Repository](https://github.com/sindresorhus/escape-string-regexp) [Homepage](https://github.com/sindresorhus/escape-string-regexp#readme) [npm](https://www.npmjs.com/package/escape-string-regexp) [Atom feed](https://inlinr.com/packages/feed/escape-string-regexp)

Your version 

## Where each line stands

[Plan an upgrade](https://inlinr.com/packages/escape-string-regexp/upgrade)

LineNewestSecurity

- 5.x 5.0.0 No known advisory Latest line
- 4.x 4.0.0 No known advisory [To 5.0.0](https://inlinr.com/packages/escape-string-regexp/upgrade/4.0.0-5.0.0)
- 3.x 3.0.0 No known advisory [To 5.0.0](https://inlinr.com/packages/escape-string-regexp/upgrade/3.0.0-5.0.0)
- 2.x 2.0.0 No known advisory [To 5.0.0](https://inlinr.com/packages/escape-string-regexp/upgrade/2.0.0-5.0.0)
- 1.x 1.0.5 No known advisory [To 5.0.0](https://inlinr.com/packages/escape-string-regexp/upgrade/1.0.5-5.0.0)

## Latest releases

1. 5.x · latest line
2. ### [5.0.0](https://inlinr.com/packages/escape-string-regexp/releases/5.0.0 "Open this release") [](https://github.com/sindresorhus/escape-string-regexp/releases/tag/v5.0.0 "Read this release where it was published")  
17 Apr 2021

  - breaking  
  Require Node.js 12 [aebb6e8](https://github.com/sindresorhus/escape-string-regexp/commit/aebb6e8)
  - breaking  
  This package is now pure ESM. Please [read this](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c "https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c").
3. 4.x · maintenance
4. ### [4.0.0](https://inlinr.com/packages/escape-string-regexp/releases/4.0.0 "Open this release") [](https://github.com/sindresorhus/escape-string-regexp/releases/tag/v4.0.0 "Read this release where it was published")  
23 Apr 2020

  - breaking  
  Escape `-` in a way that’s compatible with PCRE ([#23](https://github.com/sindresorhus/escape-string-regexp/issues/23)) [ec45c70](https://github.com/sindresorhus/escape-string-regexp/commit/ec45c70)  
  Shouldn't be breaking to most users, but if you depend on the exact output, it slightly changed.
5. 3.x · maintenance
6. ### [3.0.0](https://inlinr.com/packages/escape-string-regexp/releases/3.0.0 "Open this release") [](https://github.com/sindresorhus/escape-string-regexp/releases/tag/v3.0.0 "Read this release where it was published")  
7 Apr 2020

  - breaking  
  Require Node.js 10 [70deac5](https://github.com/sindresorhus/escape-string-regexp/commit/70deac5)
  - breaking  
  Escape `-` in a way that’s compatible with Unicode patterns ([#21](https://github.com/sindresorhus/escape-string-regexp/issues/21)) [732905d](https://github.com/sindresorhus/escape-string-regexp/commit/732905d)

Dependency tracking · free for 3 projects

## Know when your own dependencies move

This page watches escape-string-regexp. inlinr reads your package.json and keeps the same watch on every dependency you declare, then tells you only what needs you.

- Advisories reach you  
An email when a critical or high advisory affects a project, before the next install.
- Upgrades checked first  
Peer ranges, Node, ESM-only and types changes read before you bump.
- Only what matters  
Majors and breaking notes stay; patches and sibling bumps fold into one line.

[How dependency tracking works](https://inlinr.com/dependencies)

## Security

No known security advisory.

## Health

[Details](https://inlinr.com/packages/escape-string-regexp/security#signals)

- **Provenance**:
- **Publisher**:
- **Maintainers**:
- **Scorecard**:
- **Size**:

## Weekly downloads

Reading releases, release notes and advisories…

Registry facts last checked 3 Nov 2026\. Releases and advisories last read 3 Nov 2026.
