{"id":26330712,"url":"https://github.com/micromatch/has-glob","last_synced_at":"2026-04-01T20:34:20.741Z","repository":{"id":57261529,"uuid":"41897212","full_name":"micromatch/has-glob","owner":"micromatch","description":"Returns `true` if an array has a glob pattern.","archived":false,"fork":false,"pushed_at":"2016-09-08T23:54:12.000Z","size":10,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-02-12T05:05:22.757Z","etag":null,"topics":["glob","glob-pattern","pattern"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/micromatch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-04T04:11:17.000Z","updated_at":"2025-11-25T01:05:38.000Z","dependencies_parsed_at":"2022-08-25T06:01:23.476Z","dependency_job_id":null,"html_url":"https://github.com/micromatch/has-glob","commit_stats":null,"previous_names":["jonschlinkert/has-glob"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/micromatch/has-glob","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micromatch%2Fhas-glob","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micromatch%2Fhas-glob/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micromatch%2Fhas-glob/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micromatch%2Fhas-glob/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/micromatch","download_url":"https://codeload.github.com/micromatch/has-glob/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micromatch%2Fhas-glob/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31291701,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T13:12:26.723Z","status":"ssl_error","status_checked_at":"2026-04-01T13:12:25.102Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["glob","glob-pattern","pattern"],"created_at":"2025-03-15T22:17:04.832Z","updated_at":"2026-04-01T20:34:20.712Z","avatar_url":"https://github.com/micromatch.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"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\u003e 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//=\u003e true\n\nhasGlob(['foo', 'bar', 'baz']);\n//=\u003e 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//=\u003e 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//=\u003e 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//=\u003e 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 \u0026\u0026 verb\n```\n\n### Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm install -d \u0026\u0026 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._","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicromatch%2Fhas-glob","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicromatch%2Fhas-glob","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicromatch%2Fhas-glob/lists"}