{"_id":"glob-regex","_rev":"471611","name":"glob-regex","description":"Tiny glob->regex converter","dist-tags":{"latest":"0.3.2"},"maintainers":[{"name":"aleclarson","email":"alec.stanford.larson@gmail.com"}],"time":{"modified":"2021-08-05T08:20:39.000Z","created":"2017-11-26T01:04:26.960Z","0.3.2":"2018-11-19T21:51:12.349Z","0.3.1":"2018-11-13T22:30:42.150Z","0.3.0":"2018-06-26T02:58:48.133Z","0.2.2":"2017-12-30T21:30:28.794Z","0.2.1":"2017-12-30T19:01:43.675Z","0.2.0":"2017-12-13T02:50:43.749Z","0.1.1":"2017-12-01T02:03:27.238Z","0.1.0":"2017-11-30T23:54:04.115Z","0.0.1":"2017-11-26T01:04:26.960Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/aleclarson/glob-regex.git"},"versions":{"0.3.2":{"name":"glob-regex","version":"0.3.2","description":"Tiny glob->regex converter","repository":{"type":"git","url":"git+https://github.com/aleclarson/glob-regex.git"},"main":"index.js","devDependencies":{"testpass":"^0.5.1"},"keywords":["glob","globs","regex","regexp"],"gitHead":"66c73a1bca8f6d62b8f9782ca1c572dccb33124a","bugs":{"url":"https://github.com/aleclarson/glob-regex/issues"},"homepage":"https://github.com/aleclarson/glob-regex#readme","_id":"glob-regex@0.3.2","_npmVersion":"6.4.1","_nodeVersion":"11.1.0","_npmUser":{"name":"aleclarson","email":"alec.stanford.larson@gmail.com"},"dist":{"shasum":"27348f2f60648ec32a4a53137090b9fb934f3425","size":2271,"noattachment":false,"key":"/glob-regex/-/glob-regex-0.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/glob-regex/download/glob-regex-0.3.2.tgz"},"maintainers":[{"name":"aleclarson","email":"alec.stanford.larson@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/glob-regex_0.3.2_1542664272215_0.5817337026512501"},"_hasShrinkwrap":false,"publish_time":1542664272349,"_cnpm_publish_time":1542664272349},"0.3.1":{"name":"glob-regex","version":"0.3.1","repository":{"type":"git","url":"git+https://github.com/aleclarson/glob-regex.git"},"devDependencies":{"testpass":"^0.5.1"},"gitHead":"78cfeac5ddd62035ef4a4f1ae355b49860eb06e0","description":"Convert a glob to a `RegExp` object.","bugs":{"url":"https://github.com/aleclarson/glob-regex/issues"},"homepage":"https://github.com/aleclarson/glob-regex#readme","_id":"glob-regex@0.3.1","_npmVersion":"6.4.1","_nodeVersion":"11.1.0","_npmUser":{"name":"aleclarson","email":"alec.stanford.larson@gmail.com"},"dist":{"shasum":"1923303486997a22bbc1353be1145d3db8cec6b6","size":2044,"noattachment":false,"key":"/glob-regex/-/glob-regex-0.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/glob-regex/download/glob-regex-0.3.1.tgz"},"maintainers":[{"name":"aleclarson","email":"alec.stanford.larson@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/glob-regex_0.3.1_1542148242011_0.902038804507395"},"_hasShrinkwrap":false,"publish_time":1542148242150,"_cnpm_publish_time":1542148242150},"0.3.0":{"name":"glob-regex","version":"0.3.0","repository":{"type":"git","url":"git+https://github.com/aleclarson/glob-regex.git"},"devDependencies":{"testpass":"^0.5.1"},"gitHead":"838220ed8aa204bcf53ea84327a40a3e1747fc65","description":"Convert a glob to a `RegExp` object.","bugs":{"url":"https://github.com/aleclarson/glob-regex/issues"},"homepage":"https://github.com/aleclarson/glob-regex#readme","_id":"glob-regex@0.3.0","_npmVersion":"6.1.0","_nodeVersion":"10.3.0","_npmUser":{"name":"aleclarson","email":"alec.stanford.larson@gmail.com"},"maintainers":[{"name":"aleclarson","email":"alec.stanford.larson@gmail.com"}],"dist":{"shasum":"40564f835378ccccddf72d9e7ae72e02f7f33f36","size":1902,"noattachment":false,"key":"/glob-regex/-/glob-regex-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/glob-regex/download/glob-regex-0.3.0.tgz"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/glob-regex_0.3.0_1529981928008_0.6342919911753053"},"_hasShrinkwrap":false,"publish_time":1529981928133,"_cnpm_publish_time":1529981928133},"0.2.2":{"name":"glob-regex","version":"0.2.2","repository":{"type":"git","url":"git+https://github.com/aleclarson/glob-regex.git"},"devDependencies":{"testpass":"^0.5.1"},"gitHead":"396495d7bd215ad322099e57ab2f9e53374bdb87","description":"Convert a glob to a `RegExp` object.","bugs":{"url":"https://github.com/aleclarson/glob-regex/issues"},"homepage":"https://github.com/aleclarson/glob-regex#readme","_id":"glob-regex@0.2.2","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"aleclarson","email":"alec.stanford.larson@gmail.com"},"maintainers":[{"name":"aleclarson","email":"alec.stanford.larson@gmail.com"}],"dist":{"shasum":"43dc4b0d986a394c7770a99802367d8300370977","size":2580,"noattachment":false,"key":"/glob-regex/-/glob-regex-0.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/glob-regex/download/glob-regex-0.2.2.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/glob-regex-0.2.2.tgz_1514669427840_0.16452122735790908"},"directories":{},"publish_time":1514669428794,"_cnpm_publish_time":1514669428794,"_hasShrinkwrap":false},"0.2.1":{"name":"glob-regex","version":"0.2.1","repository":{"type":"git","url":"git+https://github.com/aleclarson/glob-regex.git"},"devDependencies":{"testpass":"^0.5.1"},"gitHead":"547327d5d8df452f83ea0345e66a3d428c428235","description":"Convert a glob to a `RegExp` object.","bugs":{"url":"https://github.com/aleclarson/glob-regex/issues"},"homepage":"https://github.com/aleclarson/glob-regex#readme","_id":"glob-regex@0.2.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"aleclarson","email":"alec.stanford.larson@gmail.com"},"maintainers":[{"name":"aleclarson","email":"alec.stanford.larson@gmail.com"}],"dist":{"shasum":"25f1dcf6f0157d389e26ff5e46e2196947db91e0","size":2421,"noattachment":false,"key":"/glob-regex/-/glob-regex-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/glob-regex/download/glob-regex-0.2.1.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/glob-regex-0.2.1.tgz_1514660502771_0.8954461198300123"},"directories":{},"publish_time":1514660503675,"_hasShrinkwrap":false,"_cnpm_publish_time":1514660503675},"0.2.0":{"name":"glob-regex","version":"0.2.0","repository":{"type":"git","url":"git+https://github.com/aleclarson/glob-regex.git"},"devDependencies":{"testpass":"0.0.x"},"gitHead":"c172ae7e1151c71c3a98347cb6cd6596fffdc23d","description":"Convert a glob to a `RegExp` object.","bugs":{"url":"https://github.com/aleclarson/glob-regex/issues"},"homepage":"https://github.com/aleclarson/glob-regex#readme","_id":"glob-regex@0.2.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"aleclarson","email":"alec.stanford.larson@gmail.com"},"maintainers":[{"name":"aleclarson","email":"alec.stanford.larson@gmail.com"}],"dist":{"shasum":"0c0626e4d6122deae0fa5d097c57386f5a77a199","size":2372,"noattachment":false,"key":"/glob-regex/-/glob-regex-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/glob-regex/download/glob-regex-0.2.0.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/glob-regex-0.2.0.tgz_1513133442665_0.02271662140265107"},"directories":{},"publish_time":1513133443749,"_hasShrinkwrap":false,"_cnpm_publish_time":1513133443749},"0.1.1":{"name":"glob-regex","version":"0.1.1","repository":{"type":"git","url":"git+https://github.com/aleclarson/glob-regex.git"},"devDependencies":{"testpass":"0.0.x"},"gitHead":"b65fdcd1655550acee4923974f0c92c776d4383e","description":"Convert a glob to a `RegExp` object.","bugs":{"url":"https://github.com/aleclarson/glob-regex/issues"},"homepage":"https://github.com/aleclarson/glob-regex#readme","_id":"glob-regex@0.1.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"aleclarson","email":"alec.stanford.larson@gmail.com"},"maintainers":[{"name":"aleclarson","email":"alec.stanford.larson@gmail.com"}],"dist":{"shasum":"6504c10f92a00c1cc585b0fbcdebf0a62c734d5e","size":2131,"noattachment":false,"key":"/glob-regex/-/glob-regex-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/glob-regex/download/glob-regex-0.1.1.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/glob-regex-0.1.1.tgz_1512093806307_0.5361410372424871"},"directories":{},"publish_time":1512093807238,"_hasShrinkwrap":false,"_cnpm_publish_time":1512093807238},"0.1.0":{"name":"glob-regex","version":"0.1.0","repository":{"type":"git","url":"git+https://github.com/aleclarson/glob-regex.git"},"devDependencies":{"testpass":"0.0.x"},"gitHead":"8c791ffed03ea656dc2c349eaf9eda7ee55ed85c","description":"Convert a glob to a `RegExp` object.","bugs":{"url":"https://github.com/aleclarson/glob-regex/issues"},"homepage":"https://github.com/aleclarson/glob-regex#readme","_id":"glob-regex@0.1.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"aleclarson","email":"alec.stanford.larson@gmail.com"},"maintainers":[{"name":"aleclarson","email":"alec.stanford.larson@gmail.com"}],"dist":{"shasum":"2fa9fbea84d3981aabb9a96255b2920136606832","size":2127,"noattachment":false,"key":"/glob-regex/-/glob-regex-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/glob-regex/download/glob-regex-0.1.0.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/glob-regex-0.1.0.tgz_1512086043159_0.1628041504882276"},"directories":{},"publish_time":1512086044115,"_hasShrinkwrap":false,"_cnpm_publish_time":1512086044115},"0.0.1":{"name":"glob-regex","version":"0.0.1","repository":{"type":"git","url":"git+https://github.com/aleclarson/glob-regex.git"},"devDependencies":{"testpass":"0.0.x"},"gitHead":"d0a118efec8b5a0eb5abdc08ad9055382e85271e","description":"Convert a glob to a `RegExp` object.","bugs":{"url":"https://github.com/aleclarson/glob-regex/issues"},"homepage":"https://github.com/aleclarson/glob-regex#readme","_id":"glob-regex@0.0.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"aleclarson","email":"alec.stanford.larson@gmail.com"},"maintainers":[{"name":"aleclarson","email":"alec.stanford.larson@gmail.com"}],"dist":{"shasum":"f84f6f2c20c20d49d1c9d5682a21c1a37b176606","size":1998,"noattachment":false,"key":"/glob-regex/-/glob-regex-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/glob-regex/download/glob-regex-0.0.1.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/glob-regex-0.0.1.tgz_1511658266003_0.023160424083471298"},"directories":{},"publish_time":1511658266960,"_hasShrinkwrap":false,"_cnpm_publish_time":1511658266960}},"readme":"# glob-regex\n\n[![npm](https://img.shields.io/npm/v/glob-regex.svg)](https://www.npmjs.com/package/glob-regex)\n[![Bundle size](https://badgen.net/bundlephobia/min/glob-regex)](https://bundlephobia.com/result?p=glob-regex)\n[![Install size](https://packagephobia.now.sh/badge?p=glob-regex)](https://packagephobia.now.sh/result?p=glob-regex)\n[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://paypal.me/alecdotbiz)\n\nConvert a glob to a `RegExp` object.\n\n- Any periods are escaped (`.` -> `\\\\.`)\n- `*` and `**` are replaced\n- Always start with `^` and end with `$`\n- All `RegExp` syntax is valid\n- Path separators are auto-escaped by `new RegExp`\n\n```js\nconst globRegex = require('glob-regex')\n\n// Match no directory.\nlet re = globRegex('*.js')\nre.test('a.js') // => true\nre.test('a.css') // => false\nre.test('a/b.js') // => false\n\n// Use ? operator for optional character.\nre = globRegex('*.jsx?')\nre.test('a.js') // => true\nre.test('b.jsx') // => true\n\n// Match any directory.\nre = globRegex('**.css')\nre.test('a.css') // => true\nre.test('a/b.css') // => true\n\n// Match any directory and specific name.\nre = globRegex('**/a.css')\nre.test('a.css') // => true\nre.test('b/a.css') // => true\n\n// Use | operator to match multiple values.\nre = globRegex('*.(js|css)')\nre.test('a.js') // => true\nre.test('a.css') // => true\n```\n\nUse `globRegex.replace()` to transform a glob into a RegExp-compatible string.\n\n**NOTE:** It's not recommended to use `globRegex(array)` if you need\nthe `exec` method, since the result will be difficult to make use of.\nUsing the `test` method works great, though!\n\n","_attachments":{},"homepage":"https://github.com/aleclarson/glob-regex#readme","bugs":{"url":"https://github.com/aleclarson/glob-regex/issues"}}