{"_id":"string-escape-regex","_rev":"3343407","name":"string-escape-regex","description":"A tiny function for escaping a string to be used as the source in a regex.","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"time":{"modified":"2024-07-10T08:45:16.000Z","created":"2022-05-06T11:09:30.824Z","1.0.0":"2022-05-06T11:09:30.824Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/fabiospampinato/string-escape-regex.git"},"versions":{"1.0.0":{"name":"string-escape-regex","repository":{"type":"git","url":"git+https://github.com/fabiospampinato/string-escape-regex.git"},"description":"A tiny function for escaping a string to be used as the source in a regex.","version":"1.0.0","type":"module","main":"dist/index.js","exports":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"clean":"tsex clean","compile":"tsex compile","compile:watch":"tsex compile --watch","test":"tsex test","test:watch":"tsex --watch","prepublishOnly":"npm run clean && npm run compile && npm run test"},"keywords":["string","escape","regex","regexp"],"devDependencies":{"fava":"^0.0.6","tsex":"^1.1.2","typescript":"^4.6.4"},"gitHead":"ad8725f235b67831f2918a8f909d80b7c3cf0d76","bugs":{"url":"https://github.com/fabiospampinato/string-escape-regex/issues"},"homepage":"https://github.com/fabiospampinato/string-escape-regex#readme","_id":"string-escape-regex@1.0.0","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"shasum":"ed37c9637f810929533c132106d9b03966298222","size":2063,"noattachment":false,"key":"/string-escape-regex/-/string-escape-regex-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/string-escape-regex/download/string-escape-regex-1.0.0.tgz"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"directories":{},"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/string-escape-regex_1.0.0_1651835370680_0.6892852719559637"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-05-06T12:47:08.661Z","publish_time":1651835370824,"_cnpm_publish_time":1651835370824}},"readme":"# String Escape Regex\n\nA tiny function for escaping a string to be used as the source in a regex.\n\n## Install\n\n```sh\nnpm install --save string-escape-regex\n```\n\n## Usage\n\n```ts\nimport escape from 'string-escape-regex';\n\nescape ( 'foo()' ); // => 'foo\\\\(\\\\)'\n```\n\n## License\n\nMIT © Fabio Spampinato\n","_attachments":{},"homepage":"https://github.com/fabiospampinato/string-escape-regex#readme","bugs":{"url":"https://github.com/fabiospampinato/string-escape-regex/issues"}}