{"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":{"integrity":"sha512-p49YdHUoAQl9Wo7/Y9gvOCqcxSypsuFet9plSv9tdYQ0bZW5tLyOpOusJILdcUeaCiza1s6vQmLlCKA1PYYX7A==","shasum":"40564f835378ccccddf72d9e7ae72e02f7f33f36","tarball":"http://registry-npm.ywwl.com/glob-regex/download/glob-regex-0.3.0.tgz","fileCount":6,"unpackedSize":3273,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbMavoCRA9TVsSAnZWagAABFIP/iScU1EzZkwRUbb4KFof\nOA2Bs8ALR8AfhkKsll40j1tvWpelppo/LMwPHneZyQC5gffVhiA+xekRvENV\ntmva80XiZ0AtAVAPb/fWicIfBvtI2g1mvmYizFP5dTUjS5oSD7bIRthWq3Bz\n39UZ1+DL/RRDUOyQd7+miN/pyGH5+CiP+zleuJZf9zVwKqpPhEr36lgsno4b\nx2RHw1Wl69dfv2OMCoXCw/KMhR88u8BpT0mAmlm28AxieXwPiw/iu0ki0s2z\n0cXhPYgVWe/FG8iJqB1aaECCN7F48P7Y78eltXf5/0e4Hs5x0BSrTwpZyfUv\ncvGMvhwFyqzxgfc3+0aK5Igf6VkE+hhWlJsmz974jwiKL+b1P3zVi2tKub7j\n7C/+MJUuTviTRYGpWpWNHkSH05HRbCQxdYnMSFsXMu2k5PKaZFbhnzRSplvb\nxl6hK1UOnial2eHfJnR4isIPDp5Y/KjgXBMY0Om0JqmOFDp2UtHXMD/9Y7Nt\nwDbfe5sS21pz3teWcLB6gtAmyOuvX2q7MsfxirNWAehizb3t2aB6SqHoIkAC\nJz5yLMwV22NTer4Y0pUVYZSJ21ZvkL9ars2YorEeZWXcqlHSt3kxm66X86F1\noDCVFAPWKDZqAPNE4axZd5avEtp6UAtcCMBqxJznqV65hT+TvMV/4bfpfDk3\nzbwZ\r\n=niv/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCxCvSgy0MVcz7ZNt7teIrrnoxnSASmO9pYA50omP9e7AIhAIk+lCKsqMo7TcgBg3svnkSzz4HXjFwb1Y/BFxiCa0mW"}],"size":1902,"noattachment":false,"key":"/glob-regex/-/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,"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","publish_time":1529981928133,"_cnpm_publish_time":1529981928133,"dist-tags":{"latest":"0.3.2"}}