{"_id":"glob-to-regexp","_rev":"14663","name":"glob-to-regexp","description":"Convert globs to regular expressions","dist-tags":{"latest":"0.4.1"},"maintainers":[{"name":"nickfitzgerald","email":""}],"time":{"modified":"2023-03-20T07:42:23.000Z","created":"2013-07-16T23:31:18.936Z","0.4.1":"2019-04-01T16:19:53.460Z","0.4.0":"2018-02-09T20:29:33.774Z","0.3.0":"2016-08-28T06:05:38.614Z","0.2.0":"2016-08-27T17:58:11.118Z","0.1.0":"2015-07-14T20:29:03.066Z","0.0.2":"2015-01-30T21:44:24.713Z","0.0.1":"2013-11-26T17:06:53.604Z","0.0.0":"2013-07-16T23:31:18.936Z"},"users":{},"author":{"name":"Nick Fitzgerald","email":"fitzgen@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/fitzgen/glob-to-regexp.git"},"versions":{"0.4.1":{"name":"glob-to-regexp","version":"0.4.1","description":"Convert globs to regular expressions","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/fitzgen/glob-to-regexp.git"},"keywords":["regexp","glob","regexps","regular expressions","regular expression","wildcard"],"author":{"name":"Nick Fitzgerald","email":"fitzgen@gmail.com"},"license":"BSD-2-Clause","gitHead":"2abf65a834259c6504ed3b80e85f893f8cd99127","bugs":{"url":"https://github.com/fitzgen/glob-to-regexp/issues"},"homepage":"https://github.com/fitzgen/glob-to-regexp#readme","_id":"glob-to-regexp@0.4.1","_nodeVersion":"10.11.0","_npmVersion":"6.9.0","dist":{"shasum":"c75297087c851b9a578bd217dd59a92f59fe546e","size":4489,"noattachment":false,"key":"/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz","tarball":"http://name.csiicloud.com:7001/glob-to-regexp/download/glob-to-regexp-0.4.1.tgz"},"maintainers":[{"name":"nickfitzgerald","email":""}],"_npmUser":{"name":"nickfitzgerald","email":"fitzgen@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/glob-to-regexp_0.4.1_1554135593354_0.8493549171717911"},"_hasShrinkwrap":false,"publish_time":1554135593460,"_cnpm_publish_time":1554135593460},"0.4.0":{"name":"glob-to-regexp","version":"0.4.0","description":"Convert globs to regular expressions","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/fitzgen/glob-to-regexp.git"},"keywords":["regexp","glob","regexps","regular expressions","regular expression","wildcard"],"author":{"name":"Nick Fitzgerald","email":"fitzgen@gmail.com"},"license":"BSD","gitHead":"1d89832646e0c3b9a522627a3cbd68bf4baa0d43","bugs":{"url":"https://github.com/fitzgen/glob-to-regexp/issues"},"homepage":"https://github.com/fitzgen/glob-to-regexp#readme","_id":"glob-to-regexp@0.4.0","_npmVersion":"5.6.0","_nodeVersion":"9.3.0","_npmUser":{"name":"nickfitzgerald","email":"fitzgen@gmail.com"},"dist":{"shasum":"49bd677b1671022bd10921c3788f23cdebf9c7e6","size":4491,"noattachment":false,"key":"/glob-to-regexp/-/glob-to-regexp-0.4.0.tgz","tarball":"http://name.csiicloud.com:7001/glob-to-regexp/download/glob-to-regexp-0.4.0.tgz"},"maintainers":[{"name":"nickfitzgerald","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/glob-to-regexp_0.4.0_1518208173718_0.2637942738688941"},"_hasShrinkwrap":false,"publish_time":1518208173774,"_cnpm_publish_time":1518208173774},"0.3.0":{"name":"glob-to-regexp","version":"0.3.0","description":"Convert globs to regular expressions","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"https://github.com/fitzgen/glob-to-regexp.git"},"keywords":["regexp","glob","regexps","regular expressions","regular expression","wildcard"],"author":{"name":"Nick Fitzgerald","email":"fitzgen@gmail.com"},"license":"BSD","gitHead":"60be6c56893e80ba8719c31bd919e9b8f84c0c1d","bugs":{"url":"https://github.com/fitzgen/glob-to-regexp/issues"},"homepage":"https://github.com/fitzgen/glob-to-regexp","_id":"glob-to-regexp@0.3.0","_shasum":"8c5a1494d2066c570cc3bfe4496175acc4d502ab","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.11.1","_npmUser":{"name":"nickfitzgerald","email":"fitzgen@gmail.com"},"maintainers":[{"name":"nickfitzgerald","email":""}],"dist":{"shasum":"8c5a1494d2066c570cc3bfe4496175acc4d502ab","size":4381,"noattachment":false,"key":"/glob-to-regexp/-/glob-to-regexp-0.3.0.tgz","tarball":"http://name.csiicloud.com:7001/glob-to-regexp/download/glob-to-regexp-0.3.0.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/glob-to-regexp-0.3.0.tgz_1472364336407_0.02303200075402856"},"directories":{},"publish_time":1472364338614,"_cnpm_publish_time":1472364338614,"_hasShrinkwrap":false},"0.2.0":{"name":"glob-to-regexp","version":"0.2.0","description":"Convert globs to regular expressions","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"https://github.com/fitzgen/glob-to-regexp.git"},"keywords":["regexp","glob","regexps","regular expressions","regular expression","wildcard"],"author":{"name":"Nick Fitzgerald","email":"fitzgen@gmail.com"},"license":"BSD","gitHead":"8523ef26bc3b64975fde849a6bc140f842d609b6","bugs":{"url":"https://github.com/fitzgen/glob-to-regexp/issues"},"homepage":"https://github.com/fitzgen/glob-to-regexp","_id":"glob-to-regexp@0.2.0","_shasum":"e6dc13a4bcb7acdd49ea99727534ca4f385e26c2","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.11.1","_npmUser":{"name":"nickfitzgerald","email":"fitzgen@gmail.com"},"maintainers":[{"name":"nickfitzgerald","email":""}],"dist":{"shasum":"e6dc13a4bcb7acdd49ea99727534ca4f385e26c2","size":4046,"noattachment":false,"key":"/glob-to-regexp/-/glob-to-regexp-0.2.0.tgz","tarball":"http://name.csiicloud.com:7001/glob-to-regexp/download/glob-to-regexp-0.2.0.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/glob-to-regexp-0.2.0.tgz_1472320688765_0.26884225686080754"},"directories":{},"publish_time":1472320691118,"_cnpm_publish_time":1472320691118,"_hasShrinkwrap":false},"0.1.0":{"name":"glob-to-regexp","version":"0.1.0","description":"Convert globs to regular expressions","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"https://github.com/fitzgen/glob-to-regexp.git"},"keywords":["regexp","glob","regexps","regular expressions","regular expression","wildcard"],"author":{"name":"Nick Fitzgerald","email":"fitzgen@gmail.com"},"license":"BSD","bugs":{"url":"https://github.com/fitzgen/glob-to-regexp/issues"},"homepage":"https://github.com/fitzgen/glob-to-regexp","_id":"glob-to-regexp@0.1.0","_shasum":"e0369d426578fd456d47dc23b09de05c1da9ea5d","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"nickfitzgerald","email":"fitzgen@gmail.com"},"maintainers":[{"name":"nickfitzgerald","email":""}],"dist":{"shasum":"e0369d426578fd456d47dc23b09de05c1da9ea5d","size":3214,"noattachment":false,"key":"/glob-to-regexp/-/glob-to-regexp-0.1.0.tgz","tarball":"http://name.csiicloud.com:7001/glob-to-regexp/download/glob-to-regexp-0.1.0.tgz"},"directories":{},"publish_time":1436905743066,"_cnpm_publish_time":1436905743066,"_hasShrinkwrap":false},"0.0.2":{"name":"glob-to-regexp","version":"0.0.2","description":"Convert globs to regular expressions","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"https://github.com/fitzgen/glob-to-regexp.git"},"keywords":["regexp","glob","regexps","regular expressions","regular expression","wildcard"],"author":{"name":"Nick Fitzgerald","email":"fitzgen@gmail.com"},"license":"BSD","bugs":{"url":"https://github.com/fitzgen/glob-to-regexp/issues"},"homepage":"https://github.com/fitzgen/glob-to-regexp","_id":"glob-to-regexp@0.0.2","_shasum":"82cb3c797594b47890f180f015c1773601374b91","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"nickfitzgerald","email":"fitzgen@gmail.com"},"maintainers":[{"name":"nickfitzgerald","email":""}],"dist":{"shasum":"82cb3c797594b47890f180f015c1773601374b91","size":2802,"noattachment":false,"key":"/glob-to-regexp/-/glob-to-regexp-0.0.2.tgz","tarball":"http://name.csiicloud.com:7001/glob-to-regexp/download/glob-to-regexp-0.0.2.tgz"},"directories":{},"publish_time":1422654264713,"_cnpm_publish_time":1422654264713,"_hasShrinkwrap":false},"0.0.1":{"name":"glob-to-regexp","version":"0.0.1","description":"Convert globs to regular expressions","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"https://github.com/fitzgen/glob-to-regexp.git"},"keywords":["regexp","glob","regexps","regular expressions","regular expression","wildcard"],"author":{"name":"Nick Fitzgerald","email":"fitzgen@gmail.com"},"license":"BSD","readmeFilename":"README.md","_id":"glob-to-regexp@0.0.1","dist":{"shasum":"2a5f79f2ed3233d4ee9ea7b6412547000c3f9d75","size":2656,"noattachment":false,"key":"/glob-to-regexp/-/glob-to-regexp-0.0.1.tgz","tarball":"http://name.csiicloud.com:7001/glob-to-regexp/download/glob-to-regexp-0.0.1.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"nickfitzgerald","email":"fitzgen@gmail.com"},"maintainers":[{"name":"nickfitzgerald","email":""}],"directories":{},"publish_time":1385485613604,"_cnpm_publish_time":1385485613604,"_hasShrinkwrap":false},"0.0.0":{"name":"glob-to-regexp","version":"0.0.0","description":"Convert globs to regular expressions","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"https://github.com/fitzgen/glob-to-regexp.git"},"keywords":["regexp","glob","regexps","regular expressions","regular expression","wildcard"],"author":{"name":"Nick Fitzgerald","email":"fitzgen@gmail.com"},"license":"BSD","readmeFilename":"README.md","_id":"glob-to-regexp@0.0.0","dist":{"shasum":"a6b928e9e088769c207f28c7cc4682f906508b80","size":1905,"noattachment":false,"key":"/glob-to-regexp/-/glob-to-regexp-0.0.0.tgz","tarball":"http://name.csiicloud.com:7001/glob-to-regexp/download/glob-to-regexp-0.0.0.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"nickfitzgerald","email":"fitzgen@gmail.com"},"maintainers":[{"name":"nickfitzgerald","email":""}],"directories":{},"publish_time":1374017478936,"_cnpm_publish_time":1374017478936,"_hasShrinkwrap":false}},"readme":"# Glob To Regular Expression\n\n[![Build Status](https://travis-ci.org/fitzgen/glob-to-regexp.png?branch=master)](https://travis-ci.org/fitzgen/glob-to-regexp)\n\nTurn a \\*-wildcard style glob (`\"*.min.js\"`) into a regular expression\n(`/^.*\\.min\\.js$/`)!\n\nTo match bash-like globs, eg. `?` for any single-character match, `[a-z]` for\ncharacter ranges, and `{*.html, *.js}` for multiple alternatives, call with\n`{ extended: true }`.\n\nTo obey [globstars `**`](https://github.com/isaacs/node-glob#glob-primer) rules set option `{globstar: true}`.\nNOTE: This changes the behavior of `*` when `globstar` is `true` as shown below:\nWhen `{globstar: true}`: `/foo/**` will match any string that starts with `/foo/`\nlike `/foo/index.htm`, `/foo/bar/baz.txt`, etc.  Also, `/foo/**/*.txt` will match\nany string that starts with `/foo/` and ends with `.txt` like `/foo/bar.txt`,\n`/foo/bar/baz.txt`, etc.\nWhereas `/foo/*` (single `*`, not a globstar) will match strings that start with\n`/foo/` like `/foo/index.htm`, `/foo/baz.txt` but will not match strings that\ncontain a `/` to the right like `/foo/bar/baz.txt`, `/foo/bar/baz/qux.dat`, etc.\n\nSet flags on the resulting `RegExp` object by adding the `flags` property to the option object, eg `{ flags: \"i\" }` for ignoring case.\n\n## Install\n\n    npm install glob-to-regexp\n\n## Usage\n```js\nvar globToRegExp = require('glob-to-regexp');\nvar re = globToRegExp(\"p*uck\");\nre.test(\"pot luck\"); // true\nre.test(\"pluck\"); // true\nre.test(\"puck\"); // true\n\nre = globToRegExp(\"*.min.js\");\nre.test(\"http://example.com/jquery.min.js\"); // true\nre.test(\"http://example.com/jquery.min.js.map\"); // false\n\nre = globToRegExp(\"*/www/*.js\");\nre.test(\"http://example.com/www/app.js\"); // true\nre.test(\"http://example.com/www/lib/factory-proxy-model-observer.js\"); // true\n\n// Extended globs\nre = globToRegExp(\"*/www/{*.js,*.html}\", { extended: true });\nre.test(\"http://example.com/www/app.js\"); // true\nre.test(\"http://example.com/www/index.html\"); // true\n```\n\n## License\n\nCopyright (c) 2013, Nick Fitzgerald\n\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification,\nare permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n  list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice, this\n  list of conditions and the following disclaimer in the documentation and/or\n  other materials provided with the distribution.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR\nANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\nANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n","_attachments":{},"homepage":"https://github.com/fitzgen/glob-to-regexp#readme","bugs":{"url":"https://github.com/fitzgen/glob-to-regexp/issues"},"license":"BSD-2-Clause"}