@os-team/escape-string-regexp
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

@os-team/escape-string-regexp NPM version BundlePhobia

Escapes special characters in a string for regular expressions.

Usage

Install the package

Install the package using the following command:

yarn add @os-team/escape-string-regexp

Simple usage

import escapeStringRegexp from 'escape-string-regexp';

const escapedString = escapeStringRegexp('a\\b'); // a\\b

Based on escape-string-regexp.

Readme

Keywords

none

Package Sidebar

Install

npm i @os-team/escape-string-regexp

Weekly Downloads

97

Version

1.0.5

License

MIT

Unpacked Size

3.29 kB

Total Files

8

Last publish

Collaborators

  • oxilor