/escape-string-regexp-cjs

Primary LanguageJavaScriptDo What The F*ck You Want To Public LicenseWTFPL

What is this

A simple cjs wrapper to the escape-string-regexp module

Why make a wrapper ?

Since version 5 of escape-string-regexp, the module only supports esm import. In order to continue using this module conveniently I decided to wrap it in fix-esm.

Why declare escape-string-regexp as a peer dependency ?

Doing this allows you to decide the version of escape-string-regexp in your project.