{"_id":"has-glob","_rev":"66318","name":"has-glob","description":"Returns `true` if an array has a glob pattern.","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:22:11.000Z","created":"2015-09-04T04:12:46.017Z","1.0.0":"2016-09-08T23:54:14.324Z","0.1.1":"2015-10-18T22:00:56.046Z","0.1.0":"2015-09-04T04:12:46.017Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/has-glob.git"},"versions":{"1.0.0":{"name":"has-glob","description":"Returns `true` if an array has a glob pattern.","version":"1.0.0","homepage":"https://github.com/jonschlinkert/has-glob","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/has-glob.git"},"bugs":{"url":"https://github.com/jonschlinkert/has-glob/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"is-glob":"^3.0.0"},"devDependencies":{"gulp-format-md":"^0.1.10","mocha":"^3.0.2"},"keywords":["bash","braces","check","exec","expression","extglob","glob","globbing","globstar","has","match","matches","pattern","regex","regular","string","test"],"verb":{"related":{"list":["has-glob","is-glob","is-negated-glob","is-valid-glob","micromatch"]},"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true},"reflinks":["verb","verb-generate-readme"]},"gitHead":"a93627dbcd0e6cef36afb54c0f6e78b06fbb1ae8","_id":"has-glob@1.0.0","_shasum":"9aaa9eedbffb1ba3990a7b0010fb678ee0081207","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"9aaa9eedbffb1ba3990a7b0010fb678ee0081207","size":2870,"noattachment":false,"key":"/has-glob/-/has-glob-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/has-glob/download/has-glob-1.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/has-glob-1.0.0.tgz_1473378852896_0.014475793112069368"},"directories":{},"publish_time":1473378854324,"_cnpm_publish_time":1473378854324,"_hasShrinkwrap":false},"0.1.1":{"name":"has-glob","description":"Returns `true` if an array has a glob pattern.","version":"0.1.1","homepage":"https://github.com/jonschlinkert/has-glob","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/has-glob.git"},"bugs":{"url":"https://github.com/jonschlinkert/has-glob/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"is-glob":"^2.0.1"},"devDependencies":{"mocha":"*"},"keywords":["bash","braces","check","exec","extglob","expression","glob","globbing","globstar","match","matches","pattern","regex","regular","string","test"],"verb":{"related":{"list":["is-glob","micromatch","has-glob","is-valid-glob"]}},"gitHead":"f66e8e42b98be6a3bc92b2788f7a95e301797f48","_id":"has-glob@0.1.1","_shasum":"a261c4c2a6c667e0c77b700a7f297c39ef3aa589","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"a261c4c2a6c667e0c77b700a7f297c39ef3aa589","size":2345,"noattachment":false,"key":"/has-glob/-/has-glob-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/has-glob/download/has-glob-0.1.1.tgz"},"directories":{},"publish_time":1445205656046,"_cnpm_publish_time":1445205656046,"_hasShrinkwrap":false},"0.1.0":{"name":"has-glob","description":"Returns `true` if an array has a glob pattern.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/has-glob","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/has-glob.git"},"bugs":{"url":"https://github.com/jonschlinkert/has-glob/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"is-glob":"^2.0.0"},"devDependencies":{"mocha":"*"},"keywords":["bash","braces","check","exec","extglob","expression","glob","globbing","globstar","match","matches","pattern","regex","regular","string","test"],"verb":{"related":{"list":["is-glob","micromatch","has-glob","is-valid-glob"]}},"gitHead":"f66e8e42b98be6a3bc92b2788f7a95e301797f48","_id":"has-glob@0.1.0","_shasum":"8346606e4496b043cf7e6339b264234d08a8ea75","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"8346606e4496b043cf7e6339b264234d08a8ea75","size":2298,"noattachment":false,"key":"/has-glob/-/has-glob-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/has-glob/download/has-glob-0.1.0.tgz"},"directories":{},"publish_time":1441339966017,"_cnpm_publish_time":1441339966017,"_hasShrinkwrap":false}},"readme":"# has-glob [![NPM version](https://img.shields.io/npm/v/has-glob.svg?style=flat)](https://www.npmjs.com/package/has-glob) [![NPM downloads](https://img.shields.io/npm/dm/has-glob.svg?style=flat)](https://npmjs.org/package/has-glob) [![Build Status](https://img.shields.io/travis/jonschlinkert/has-glob.svg?style=flat)](https://travis-ci.org/jonschlinkert/has-glob)\n\n> Returns `true` if an array has a glob pattern.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save has-glob\n```\n\n## Usage\n\n```js\nvar hasGlob = require('has-glob');\n\nhasGlob(['foo', 'bar', '*.js']);\n//=> true\n\nhasGlob(['foo', 'bar', 'baz']);\n//=> false\n```\n\n**True**\n\nThe following all return `true`:\n\n```js\nhasGlob(['foo', 'bar', '*.js'])\nhasGlob(['foo', 'bar', '!*.js'])\nhasGlob(['foo', 'bar', '!foo'])\nhasGlob(['foo', 'bar', '!foo.js'])\nhasGlob(['foo', 'bar', '**/abc.js'])\nhasGlob(['foo', 'bar', 'abc/*.js'])\nhasGlob(['foo', 'bar', 'abc/{a,b}.js'])\nhasGlob(['foo', 'bar', 'abc/{a..z}.js'])\nhasGlob(['foo', 'bar', 'abc/{a..z..2}.js'])\nhasGlob(['foo', 'bar', 'abc/@(a).js'])\nhasGlob(['foo', 'bar', 'abc/!(a).js'])\nhasGlob(['foo', 'bar', 'abc/+(a).js'])\nhasGlob(['foo', 'bar', 'abc/*(a).js'])\nhasGlob(['foo', 'bar', 'abc/?(a).js'])\nhasGlob(['foo', 'bar', 'abc/@.js'])\nhasGlob(['foo', 'bar', 'abc/!.js'])\nhasGlob(['foo', 'bar', 'abc/+.js'])\nhasGlob(['foo', 'bar', 'abc/*.js'])\nhasGlob(['foo', 'bar', 'abc/?.js'])\nhasGlob(['foo', 'bar', 'abc/(aaa|bbb).js'])\nhasGlob(['foo', 'bar', 'abc/?.js'])\nhasGlob(['foo', 'bar', '?.js'])\nhasGlob(['foo', 'bar', '[abc].js'])\nhasGlob(['foo', 'bar', '[^abc].js'])\nhasGlob(['foo', 'bar', 'a/b/c/[a-z].js'])\nhasGlob(['foo', 'bar', '[a-j]*[^c]b/c'])\n//=> true\n```\n\nAlso works with strings:\n\n```js\nhasGlob('*.js')\nhasGlob('!*.js')\nhasGlob('!foo')\nhasGlob('!foo.js')\nhasGlob('**/abc.js')\nhasGlob('abc/*.js')\n//=> true\n```\n\n**False**\n\nThe following all return `false`:\n\n```js\nhasGlob([])\nhasGlob([null])\nhasGlob([undefined])\nhasGlob([{}])\nhasGlob(['.'])\nhasGlob(['foo', 'bar', 'aa'])\nhasGlob(['foo', 'bar', 'abc.js'])\nhasGlob(['foo', 'bar', 'abc/def/ghi.js'])\n//=> false\n```\n\n## About\n\n### Related projects\n\n* [has-glob](https://www.npmjs.com/package/has-glob): Returns `true` if an array has a glob pattern. | [homepage](https://github.com/jonschlinkert/has-glob \"Returns `true` if an array has a glob pattern.\")\n* [is-glob](https://www.npmjs.com/package/is-glob): Returns `true` if the given string looks like a glob pattern or an extglob pattern… [more](https://github.com/jonschlinkert/is-glob) | [homepage](https://github.com/jonschlinkert/is-glob \"Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a bet\")\n* [is-negated-glob](https://www.npmjs.com/package/is-negated-glob): Returns an object with a `negated` boolean and the `!` stripped from negation patterns. Also… [more](https://github.com/jonschlinkert/is-negated-glob) | [homepage](https://github.com/jonschlinkert/is-negated-glob \"Returns an object with a `negated` boolean and the `!` stripped from negation patterns. Also respects extglobs.\")\n* [is-valid-glob](https://www.npmjs.com/package/is-valid-glob): Return true if a value is a valid glob pattern or patterns. | [homepage](https://github.com/jonschlinkert/is-valid-glob \"Return true if a value is a valid glob pattern or patterns.\")\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. | [homepage](https://github.com/jonschlinkert/micromatch \"Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Building docs\n\n_(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_\n\nTo generate the readme and API documentation with [verb](https://github.com/verbose/verb):\n\n```sh\n$ npm install -g verb verb-generate-readme && verb\n```\n\n### Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm install -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 © 2016, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT license](https://github.com/jonschlinkert/has-glob/blob/master/LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.1.30, on September 08, 2016._","_attachments":{},"homepage":"https://github.com/jonschlinkert/has-glob","bugs":{"url":"https://github.com/jonschlinkert/has-glob/issues"},"license":"MIT"}