{"_id":"escape-string-regexp","_rev":"4278","name":"escape-string-regexp","description":"Escape RegExp special characters","dist-tags":{"latest":"5.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2021-06-03T09:56:28.000Z","created":"2014-06-24T15:06:23.496Z","5.0.0":"2021-04-17T15:45:50.334Z","4.0.0":"2020-04-23T07:31:25.491Z","3.0.0":"2020-04-07T16:29:46.974Z","2.0.0":"2019-04-17T07:49:09.559Z","1.0.5":"2016-02-21T12:55:17.074Z","1.0.4":"2015-12-19T22:16:02.473Z","1.0.3":"2015-02-22T09:22:10.197Z","1.0.2":"2014-09-13T15:50:57.511Z","1.0.1":"2014-07-12T00:34:58.761Z","1.0.0":"2014-06-24T15:06:23.496Z"},"users":{"julien-f":true,"jbnicolai":true,"zhangyaochun":true,"mlm":true,"voxpelli":true,"stretchgz":true,"koulmomo":true,"underoot":true,"bsara":true,"princetoad":true,"ex-machine":true,"eliranmal":true,"danielbankhead":true,"mojaray2k":true,"arteffeckt":true,"kael":true,"fleischer":true,"asaupup":true,"bplok20010":true,"jaeger":true,"fatelei":true,"sidwood":true,"infernocloud":true,"bart1208":true,"giovannif23":true,"zhenguo.zhao":true,"heineiuo":true,"nuwaio":true,"chrisyipw":true,"kodekracker":true,"shuoshubao":true,"tedyhy":true,"hugovila":true,"sherylhohman":true,"tommytroylin":true,"kvrao":true,"71emj1":true},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/escape-string-regexp.git"},"versions":{"5.0.0":{"name":"escape-string-regexp","version":"5.0.0","description":"Escape RegExp special characters","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/escape-string-regexp.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava && tsd"},"keywords":["escape","regex","regexp","regular","expression","string","special","characters"],"devDependencies":{"ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.38.2"},"gitHead":"ba9a4473850cb367936417e97f1f2191b7cc67dd","bugs":{"url":"https://github.com/sindresorhus/escape-string-regexp/issues"},"homepage":"https://github.com/sindresorhus/escape-string-regexp#readme","_id":"escape-string-regexp@5.0.0","_nodeVersion":"12.22.1","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"4683126b500b61762f2dbebace1806e8be31b1c8","size":1964,"noattachment":false,"key":"/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/escape-string-regexp/download/escape-string-regexp-5.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/escape-string-regexp_5.0.0_1618674350223_0.2814730865531563"},"_hasShrinkwrap":false,"publish_time":1618674350334,"_cnpm_publish_time":1618674350334},"4.0.0":{"name":"escape-string-regexp","version":"4.0.0","description":"Escape RegExp special characters","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/escape-string-regexp.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=10"},"scripts":{"test":"xo && ava && tsd"},"keywords":["escape","regex","regexp","regular","expression","string","special","characters"],"devDependencies":{"ava":"^1.4.1","tsd":"^0.11.0","xo":"^0.28.3"},"gitHead":"71083e89129bcf72a10656508de5442d3f97966d","bugs":{"url":"https://github.com/sindresorhus/escape-string-regexp/issues"},"homepage":"https://github.com/sindresorhus/escape-string-regexp#readme","_id":"escape-string-regexp@4.0.0","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"14ba83a5d373e3d311e5afca29cf5bfad965bf34","size":2017,"noattachment":false,"key":"/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/escape-string-regexp/download/escape-string-regexp-4.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/escape-string-regexp_4.0.0_1587627085362_0.5996192452086115"},"_hasShrinkwrap":false,"publish_time":1587627085491,"_cnpm_publish_time":1587627085491},"3.0.0":{"name":"escape-string-regexp","version":"3.0.0","description":"Escape RegExp special characters","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/escape-string-regexp.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=10"},"scripts":{"test":"xo && ava && tsd"},"keywords":["escape","regex","regexp","regular","expression","string","special","characters"],"devDependencies":{"ava":"^1.4.1","tsd":"^0.11.0","xo":"^0.28.3"},"gitHead":"d248d827a72f75d7bafbe58097b9a5971c560df7","bugs":{"url":"https://github.com/sindresorhus/escape-string-regexp/issues"},"homepage":"https://github.com/sindresorhus/escape-string-regexp#readme","_id":"escape-string-regexp@3.0.0","_nodeVersion":"10.19.0","_npmVersion":"6.13.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"1dad9cc28aed682be0de197280f79911a5fccd61","size":2019,"noattachment":false,"key":"/escape-string-regexp/-/escape-string-regexp-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/escape-string-regexp/download/escape-string-regexp-3.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/escape-string-regexp_3.0.0_1586276986717_0.39881831235287324"},"_hasShrinkwrap":false,"publish_time":1586276986974,"_cnpm_publish_time":1586276986974},"2.0.0":{"name":"escape-string-regexp","version":"2.0.0","description":"Escape RegExp special characters","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/escape-string-regexp.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"maintainers":[{"name":"sindresorhus","email":""}],"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["escape","regex","regexp","re","regular","expression","string","str","special","characters"],"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"21c557c7f14a112eebe196abd98d085f5fcfcf5e","bugs":{"url":"https://github.com/sindresorhus/escape-string-regexp/issues"},"homepage":"https://github.com/sindresorhus/escape-string-regexp#readme","_id":"escape-string-regexp@2.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"a30304e99daa32e23b2fd20f51babd07cffca344","size":1704,"noattachment":false,"key":"/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/escape-string-regexp/download/escape-string-regexp-2.0.0.tgz"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/escape-string-regexp_2.0.0_1555487349375_0.5654575039056717"},"_hasShrinkwrap":false,"publish_time":1555487349559,"_cnpm_publish_time":1555487349559},"1.0.5":{"name":"escape-string-regexp","version":"1.0.5","description":"Escape RegExp special characters","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/escape-string-regexp"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"maintainers":[{"name":"sindresorhus","email":""}],"engines":{"node":">=0.8.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["escape","regex","regexp","re","regular","expression","string","str","special","characters"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"db124a3e1aae9d692c4899e42a5c6c3e329eaa20","bugs":{"url":"https://github.com/sindresorhus/escape-string-regexp/issues"},"homepage":"https://github.com/sindresorhus/escape-string-regexp","_id":"escape-string-regexp@1.0.5","_shasum":"1b61c0562190a8dff6ae3bb2cf0200ca130b86d4","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.6","_npmUser":{"name":"jbnicolai","email":"jappelman@xebia.com"},"dist":{"shasum":"1b61c0562190a8dff6ae3bb2cf0200ca130b86d4","size":1578,"noattachment":false,"key":"/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/escape-string-regexp/download/escape-string-regexp-1.0.5.tgz"},"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/escape-string-regexp-1.0.5.tgz_1456059312074_0.7245344955008477"},"directories":{},"publish_time":1456059317074,"_cnpm_publish_time":1456059317074,"_hasShrinkwrap":false},"1.0.4":{"name":"escape-string-regexp","version":"1.0.4","description":"Escape RegExp special characters","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/escape-string-regexp"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"maintainers":[{"name":"sindresorhus","email":""}],"engines":{"node":">=0.8.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["escape","regex","regexp","re","regular","expression","string","str","special","characters"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"e9ca6832a9506ca26402cb0e6dc95efcf35b0b97","bugs":{"url":"https://github.com/sindresorhus/escape-string-regexp/issues"},"homepage":"https://github.com/sindresorhus/escape-string-regexp","_id":"escape-string-regexp@1.0.4","_shasum":"b85e679b46f72d03fbbe8a3bf7259d535c21b62f","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"b85e679b46f72d03fbbe8a3bf7259d535c21b62f","size":1583,"noattachment":false,"key":"/escape-string-regexp/-/escape-string-regexp-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/escape-string-regexp/download/escape-string-regexp-1.0.4.tgz"},"directories":{},"publish_time":1450563362473,"_cnpm_publish_time":1450563362473,"_hasShrinkwrap":false},"1.0.3":{"name":"escape-string-regexp","version":"1.0.3","description":"Escape RegExp special characters","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/escape-string-regexp"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"maintainers":[{"name":"sindresorhus","email":""}],"engines":{"node":">=0.8.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["regex","regexp","re","regular","expression","escape","string","str","special","characters"],"devDependencies":{"mocha":"*"},"gitHead":"1e446e6b4449b5f1f8868cd31bf8fd25ee37fb4b","bugs":{"url":"https://github.com/sindresorhus/escape-string-regexp/issues"},"homepage":"https://github.com/sindresorhus/escape-string-regexp","_id":"escape-string-regexp@1.0.3","_shasum":"9e2d8b25bc2555c3336723750e03f099c2735bb5","_from":".","_npmVersion":"2.1.16","_nodeVersion":"0.10.35","_npmUser":{"name":"jbnicolai","email":"jappelman@xebia.com"},"dist":{"shasum":"9e2d8b25bc2555c3336723750e03f099c2735bb5","size":1573,"noattachment":false,"key":"/escape-string-regexp/-/escape-string-regexp-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/escape-string-regexp/download/escape-string-regexp-1.0.3.tgz"},"directories":{},"publish_time":1424596930197,"_cnpm_publish_time":1424596930197,"_hasShrinkwrap":false},"1.0.2":{"name":"escape-string-regexp","version":"1.0.2","description":"Escape RegExp special characters","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/escape-string-regexp"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.8.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["regex","regexp","re","regular","expression","escape","string","str","special","characters"],"devDependencies":{"mocha":"*"},"gitHead":"0587ee0ee03ea3fcbfa3c15cf67b47f214e20987","bugs":{"url":"https://github.com/sindresorhus/escape-string-regexp/issues"},"homepage":"https://github.com/sindresorhus/escape-string-regexp","_id":"escape-string-regexp@1.0.2","_shasum":"4dbc2fe674e71949caf3fb2695ce7f2dc1d9a8d1","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"jbnicolai","email":"jappelman@xebia.com"},"maintainers":[{"name":"sindresorhus","email":""}],"dist":{"shasum":"4dbc2fe674e71949caf3fb2695ce7f2dc1d9a8d1","size":843,"noattachment":false,"key":"/escape-string-regexp/-/escape-string-regexp-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/escape-string-regexp/download/escape-string-regexp-1.0.2.tgz"},"directories":{},"publish_time":1410623457511,"_cnpm_publish_time":1410623457511,"_hasShrinkwrap":false},"1.0.1":{"name":"escape-string-regexp","version":"1.0.1","description":"Escape RegExp special characters","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/escape-string-regexp"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["regex","regexp","re","regular","expression","escape","string","str","special","characters"],"devDependencies":{"mocha":"*"},"gitHead":"7aba3933a8492584a30cba5bf6c54f7530a9d1b0","bugs":{"url":"https://github.com/sindresorhus/escape-string-regexp/issues"},"homepage":"https://github.com/sindresorhus/escape-string-regexp","_id":"escape-string-regexp@1.0.1","_shasum":"78c76393afb84f102230d949a6125c7f3cf65904","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"jbnicolai","email":"jappelman@xebia.com"},"maintainers":[{"name":"sindresorhus","email":""}],"dist":{"shasum":"78c76393afb84f102230d949a6125c7f3cf65904","size":843,"noattachment":false,"key":"/escape-string-regexp/-/escape-string-regexp-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/escape-string-regexp/download/escape-string-regexp-1.0.1.tgz"},"directories":{},"publish_time":1405125298761,"_cnpm_publish_time":1405125298761,"_hasShrinkwrap":false},"1.0.0":{"name":"escape-string-regexp","version":"1.0.0","description":"Escape RegExp special characters","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/escape-string-regexp"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["regex","regexp","re","regular","expression","escape","string","str","special","characters"],"devDependencies":{"mocha":"*"},"bugs":{"url":"https://github.com/sindresorhus/escape-string-regexp/issues"},"homepage":"https://github.com/sindresorhus/escape-string-regexp","_id":"escape-string-regexp@1.0.0","_shasum":"0ca42ef5f3d8499fbc239fa0409ea849857d74c4","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":""}],"dist":{"shasum":"0ca42ef5f3d8499fbc239fa0409ea849857d74c4","size":819,"noattachment":false,"key":"/escape-string-regexp/-/escape-string-regexp-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/escape-string-regexp/download/escape-string-regexp-1.0.0.tgz"},"directories":{},"publish_time":1403622383496,"_cnpm_publish_time":1403622383496,"_hasShrinkwrap":false}},"readme":"# escape-string-regexp\n\n> Escape RegExp special characters\n\n## Install\n\n```\n$ npm install escape-string-regexp\n```\n\n## Usage\n\n```js\nimport escapeStringRegexp from 'escape-string-regexp';\n\nconst escapedString = escapeStringRegexp('How much $ for a ?????');\n//=> 'How much \\\\$ for a ????\\\\?'\n\nnew RegExp(escapedString);\n```\n\nYou can also use this to escape a string that is inserted into the middle of a regex, for example, into a character class.\n\n---\n\n<div align=\"center\">\n\t<b>\n\t\t<a href=\"https://tidelift.com/subscription/pkg/npm-escape-string-regexp?utm_source=npm-escape-string-regexp&utm_medium=referral&utm_campaign=readme\">Get professional support for this package with a Tidelift subscription</a>\n\t</b>\n\t<br>\n\t<sub>\n\t\tTidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.\n\t</sub>\n</div>\n","_attachments":{},"homepage":"https://github.com/sindresorhus/escape-string-regexp#readme","bugs":{"url":"https://github.com/sindresorhus/escape-string-regexp/issues"},"license":"MIT"}