{"name":"parse-glob","description":"Parse a glob pattern into an object of tokens.","version":"3.0.2","homepage":"https://github.com/jonschlinkert/parse-glob","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/parse-glob.git"},"bugs":{"url":"https://github.com/jonschlinkert/parse-glob/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/parse-glob/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha","prepublish":"browserify -o browser.js -e index.js"},"dependencies":{"glob-base":"^0.2.0","is-dotfile":"^1.0.0","is-extglob":"^1.0.0","is-glob":"^1.1.3"},"devDependencies":{"browserify":"^9.0.3","lodash":"^3.3.1","mocha":"*"},"keywords":["glob","match","bash","expand","expansion","expression","file","files","filter","find","glob","globbing","globs","globstar","match","matcher","matches","matching","path","pattern","patterns","regex","regexp","regular","shell","wildcard"],"gitHead":"6817278154aa74eab0cbfbba8e3ca5022b577f6a","_id":"parse-glob@3.0.2","_shasum":"8f68833a1af801bbcbc1d0a09b79755d6b1198d9","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"8f68833a1af801bbcbc1d0a09b79755d6b1198d9","tarball":"http://registry-npm.ywwl.com/parse-glob/download/parse-glob-3.0.2.tgz","integrity":"sha512-fSAjBZfwj/l2f5L8lexZNhyZdSn5hFX7Nkk8/5lQlUlIVMTV6c2fzKvZ63CJtwmngspVU5Vpu6X3JdrKkej5iw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDeAOZRQL/mMEK0+Qjh5SXnQagxPNILy9Zuf/boGdrBawIgDtvqLdDMSE+MmGs9iwANk9gr2h+URcl0m5JkPE+dfxM="}],"size":4045,"noattachment":false,"key":"/parse-glob/-/parse-glob-3.0.2.tgz"},"directories":{},"readme":"# parse-glob [![NPM version](https://badge.fury.io/js/parse-glob.svg)](http://badge.fury.io/js/parse-glob)  [![Build Status](https://travis-ci.org/jonschlinkert/parse-glob.svg)](https://travis-ci.org/jonschlinkert/parse-glob)\n\n> Parse a glob pattern into an object of tokens.\n\n**Changes from v1.0.0 to v3.0.4**\n\n* all path-related properties are now on the `path` object\n* all boolean properties are now on the `is` object\n* adds `base` property\n\nSee the [properties](#properties) section for details.\n\nInstall with [npm](https://www.npmjs.com/)\n\n```sh\n$ npm i parse-glob --save\n```\n\n* parses 1,000+ glob patterns in 29ms (2.3 GHz Intel Core i7)\n* Extensive [unit tests](./test.js) (more than 1,000 lines), covering wildcards, globstars, character classes, brace patterns, extglobs, dotfiles and other complex patterns.\n\nSee the tests for [hundreds of examples](./test.js).\n\n## Usage\n\n```js\nvar parseGlob = require('parse-glob');\n```\n\n**Example**\n\n```js\nparseGlob('a/b/c/**/*.{yml,json}');\n```\n\n**Returns:**\n\n```js\n{ orig: 'a/b/c/**/*.{yml,json}',\n  is:\n   { glob: true,\n     negated: false,\n     extglob: false,\n     braces: true,\n     brackets: false,\n     globstar: true,\n     dotfile: false,\n     dotdir: false },\n  glob: '**/*.{yml,json}',\n  base: 'a/b/c',\n  path:\n   { dirname: 'a/b/c/**/',\n     basename: '*.{yml,json}',\n     filename: '*',\n     extname: '.{yml,json}',\n     ext: '{yml,json}' } }\n```\n\n## Properties\n\nThe object returned by parseGlob has the following properties:\n\n* `orig`: a copy of the original, unmodified glob pattern\n* `is`: an object with boolean information about the glob:\n  - `glob`: true if the pattern actually a glob pattern\n  - `negated`: true if it's a negation pattern (`!**/foo.js`)\n  - `extglob`: true if it has extglobs (`@(foo|bar)`)\n  - `braces`: true if it has braces (`{1..2}` or `.{txt,md}`)\n  - `brackets`: true if it has POSIX brackets (`[[:alpha:]]`)\n  - `globstar`: true if the pattern has a globstar (double star, `**`)\n  - `dotfile`: true if the pattern should match dotfiles\n  - `dotdir`: true if the pattern should match dot-directories (like `.git`)\n* `glob`: the glob pattern part of the string, if any\n* `base`: the non-glob part of the string, if any\n* `path`: file path segments\n  - `dirname`: directory\n  - `basename`: file name with extension\n  - `filename`: file name without extension\n  - `extname`: file extension with dot\n  - `ext`: file extension without dot\n\n## Related\n* [glob-base](https://www.npmjs.com/package/glob-base): Returns an object with the (non-glob) base path and the actual pattern. | [homepage](https://github.com/jonschlinkert/glob-base)\n* [glob-parent](https://www.npmjs.com/package/glob-parent): Strips glob magic from a string to provide the parent path | [homepage](https://github.com/es128/glob-parent)\n* [glob-path-regex](https://www.npmjs.com/package/glob-path-regex): Regular expression for matching the parts of glob pattern. | [homepage](https://github.com/regexps/glob-path-regex)\n* [is-glob](https://www.npmjs.com/package/is-glob): Returns `true` if the given string looks like a glob pattern. | [homepage](https://github.com/jonschlinkert/is-glob)\n* [micromatch](https://www.npmjs.com/package/micromatch): Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch. Just… [more](https://www.npmjs.com/package/micromatch) | [homepage](https://github.com/jonschlinkert/micromatch)\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/parse-glob/issues/new).\n\n## Tests\n\nInstall dev dependencies:\n\n```sh\n$ npm i -d && npm test\n```\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\n\nCopyright © 2014-2015 Jon Schlinkert\nReleased under the MIT license.\n\n***\n\n_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on September 22, 2015._","publish_time":1429951174799,"_cnpm_publish_time":1429951174799,"dist-tags":{"latest":"3.0.4"}}