{"_id":"glob-path-regex","_rev":"22391","name":"glob-path-regex","description":"Regular expression for matching the parts of glob pattern.","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:01:50.000Z","created":"2015-01-20T09:50:53.911Z","1.0.0":"2015-01-20T09:50:53.911Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/regexps/glob-path-regex.git"},"versions":{"1.0.0":{"name":"glob-path-regex","description":"Regular expression for matching the parts of glob pattern.","version":"1.0.0","homepage":"https://github.com/regexps/glob-path-regex","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/regexps/glob-path-regex.git"},"bugs":{"url":"https://github.com/regexps/glob-path-regex/issues"},"license":{"type":"MIT","url":"https://github.com/regexps/glob-path-regex/blob/master/LICENSE-MIT"},"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"mocha":"*"},"keywords":["expression","file","filepath","match","matching","path","regex","regexp","regular"],"gitHead":"f6538993e9c47694afab51b203a27fa65da9d81a","_id":"glob-path-regex@1.0.0","_shasum":"1383a98c9edf0eff380ed877a8872aae5e94079d","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"1383a98c9edf0eff380ed877a8872aae5e94079d","size":1872,"noattachment":false,"key":"/glob-path-regex/-/glob-path-regex-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/glob-path-regex/download/glob-path-regex-1.0.0.tgz"},"directories":{},"publish_time":1421747453911,"_cnpm_publish_time":1421747453911,"_hasShrinkwrap":false}},"readme":"# glob-path-regex [![NPM version](https://badge.fury.io/js/glob-path-regex.svg)](http://badge.fury.io/js/glob-path-regex)\n\n> Regular expression for matching the parts of glob pattern.\n\n## Install with [npm](npmjs.org)\n\n```bash\nnpm i glob-path-regex --save\n```\n\n## Usage\n\n```js\nvar re = require('glob-path-regex');\n\n'a/b.c/d/e.min.js'.match(re());\n\n//=> [0] 'a/b/{f,g}/**/*.min.js'\n//=> [1] 'a/b/{f,g}/**/'\n//=> [2] '*.min.js'\n//=> [3] '*'\n//=> [4] '.min.js'\n//=> [5] '.js'\n//=> [6] 'js'\n```\n\n**Match groups**\n\n- `[0]`: full path (`a/b/{f,g}/**/*.min.js`)\n- `[1]`: dirname (`a/b/{f,g}/**/`)\n- `[2]`: basename (with ext) (`*.min.js`)\n- `[3]`: filename (no ext) (`*`)\n- `[4]`: multi-extensions or extname (`.min.js`)\n- `[5]`: extname (with dot) (`.js`)\n- `[6]`: ext (no dot) (`js`)\n\n\n## Run tests\n\nInstall dev dependencies:\n\n```bash\nnode i -d && mocha\n```\n\n## Contributing\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/regexps/glob-path-regex/issues)\n\n## Author\n\n**Jon Schlinkert**\n \n+ [github/jonschlinkert](https://github.com/jonschlinkert)\n+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert) \n\n## License\nCopyright (c) 2015 Jon Schlinkert  \nReleased under the MIT license\n\n***\n\n_This file was generated by [verb](https://github.com/assemble/verb) on January 20, 2015._\n","_attachments":{},"homepage":"https://github.com/regexps/glob-path-regex","bugs":{"url":"https://github.com/regexps/glob-path-regex/issues"},"license":{"type":"MIT","url":"https://github.com/regexps/glob-path-regex/blob/master/LICENSE-MIT"}}