{"_id":"is-valid-glob","_rev":"53834","name":"is-valid-glob","description":"Return true if a value is a valid glob pattern or patterns.","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"},{"name":"phated","email":"blaine.bublitz@gmail.com"},{"name":"yocontra","email":""}],"time":{"modified":"2021-06-03T10:16:24.000Z","created":"2015-07-01T04:06:29.393Z","1.0.0":"2017-06-22T19:32:17.042Z","0.3.0":"2015-07-11T09:23:18.190Z","0.2.0":"2015-07-08T02:15:02.060Z","0.1.0":"2015-07-01T04:06:29.393Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/is-valid-glob.git"},"versions":{"1.0.0":{"name":"is-valid-glob","description":"Return true if a value is a valid glob pattern or patterns.","version":"1.0.0","homepage":"https://github.com/jonschlinkert/is-valid-glob","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"contributors":[{"name":"contra","url":"http://contra.io"},{"name":"Jon Schlinkert","url":"http://twitter.com/jonschlinkert"}],"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/is-valid-glob.git"},"bugs":{"url":"https://github.com/jonschlinkert/is-valid-glob/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"gulp-format-md":"^0.1.12","mocha":"^3.4.2"},"keywords":["array","check","glob","is","match","pattern","patterns","read","test","valid","validate"],"verb":{"related":{"list":["is-glob","micromatch","vinyl-fs","vinyl"]},"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true}},"gitHead":"3eca5b021e1e21cf5ee120a39373f664cd8c54af","_id":"is-valid-glob@1.0.0","_shasum":"29bf3eff701be2d4d315dbacc39bc39fe8f601aa","_from":".","_npmVersion":"2.15.2","_nodeVersion":"0.10.41","_npmUser":{"name":"phated","email":"blaine.bublitz@gmail.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"},{"name":"phated","email":"blaine.bublitz@gmail.com"},{"name":"yocontra","email":""}],"dist":{"shasum":"29bf3eff701be2d4d315dbacc39bc39fe8f601aa","size":2830,"noattachment":false,"key":"/is-valid-glob/-/is-valid-glob-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-valid-glob/download/is-valid-glob-1.0.0.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-valid-glob-1.0.0.tgz_1498159936700_0.41157792834565043"},"directories":{},"publish_time":1498159937042,"_cnpm_publish_time":1498159937042,"_hasShrinkwrap":false},"0.3.0":{"name":"is-valid-glob","description":"Return true if a value is a valid glob pattern or patterns.","version":"0.3.0","homepage":"https://github.com/jonschlinkert/is-valid-glob","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/is-valid-glob.git"},"bugs":{"url":"https://github.com/jonschlinkert/is-valid-glob/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"*"},"keywords":["array","check","glob","match","pattern","patterns","read","test","valid","validate"],"verb":{"related":{"list":["gulp","vinyl-fs","is-glob","micromatch","braces","fill-range","expand-range","glob-fs"]}},"gitHead":"1db8053be10fcbfbe5e38dd671a7b2660556a8e1","_id":"is-valid-glob@0.3.0","_shasum":"d4b55c69f51886f9b65c70d6c2622d37e29f48fe","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"},{"name":"phated","email":"blaine.bublitz@gmail.com"},{"name":"yocontra","email":""}],"dist":{"shasum":"d4b55c69f51886f9b65c70d6c2622d37e29f48fe","size":2444,"noattachment":false,"key":"/is-valid-glob/-/is-valid-glob-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-valid-glob/download/is-valid-glob-0.3.0.tgz"},"directories":{},"publish_time":1436606598190,"_cnpm_publish_time":1436606598190,"_hasShrinkwrap":false},"0.2.0":{"name":"is-valid-glob","description":"Return true if a value is a valid glob pattern or patterns.","version":"0.2.0","homepage":"https://github.com/jonschlinkert/is-valid-glob","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/is-valid-glob.git"},"bugs":{"url":"https://github.com/jonschlinkert/is-valid-glob/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"*"},"keywords":["array","check","glob","match","pattern","patterns","read","test","valid","validate"],"gitHead":"62d59c237ccd4bd34a56d842a401202a04255f35","_id":"is-valid-glob@0.2.0","_shasum":"d7909de7ae0c37190f6db3e4f2c3482397e47b22","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"},{"name":"phated","email":"blaine.bublitz@gmail.com"},{"name":"yocontra","email":""}],"dist":{"shasum":"d7909de7ae0c37190f6db3e4f2c3482397e47b22","size":2273,"noattachment":false,"key":"/is-valid-glob/-/is-valid-glob-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-valid-glob/download/is-valid-glob-0.2.0.tgz"},"directories":{},"publish_time":1436321702060,"_cnpm_publish_time":1436321702060,"_hasShrinkwrap":false},"0.1.0":{"name":"is-valid-glob","description":"Return true if a value is a valid glob pattern.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/is-valid-glob","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/is-valid-glob.git"},"bugs":{"url":"https://github.com/jonschlinkert/is-valid-glob/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{},"devDependencies":{"mocha":"*"},"keywords":["array","check","glob","match","pattern","patterns","read","test","valid","validate"],"_id":"is-valid-glob@0.1.0","_shasum":"b166fdd9de107d0a1a2d35b3aaebf4b9d75e043e","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"},{"name":"phated","email":"blaine.bublitz@gmail.com"},{"name":"yocontra","email":""}],"dist":{"shasum":"b166fdd9de107d0a1a2d35b3aaebf4b9d75e043e","size":2248,"noattachment":false,"key":"/is-valid-glob/-/is-valid-glob-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-valid-glob/download/is-valid-glob-0.1.0.tgz"},"directories":{},"publish_time":1435723589393,"_cnpm_publish_time":1435723589393,"_hasShrinkwrap":false}},"readme":"# is-valid-glob [![NPM version](https://img.shields.io/npm/v/is-valid-glob.svg?style=flat)](https://www.npmjs.com/package/is-valid-glob) [![NPM monthly downloads](https://img.shields.io/npm/dm/is-valid-glob.svg?style=flat)](https://npmjs.org/package/is-valid-glob) [![NPM total downloads](https://img.shields.io/npm/dt/is-valid-glob.svg?style=flat)](https://npmjs.org/package/is-valid-glob) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/is-valid-glob.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/is-valid-glob)\n\n> Return true if a value is a valid glob pattern or patterns.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save is-valid-glob\n```\n\n## Usage\n\nThis really just checks to make sure that a pattern is either a string or array, and if it's an array it's either empty or consists of only strings.\n\n```js\nvar isValidGlob = require('is-valid-glob');\n\nisValidGlob('foo/*.js');\n//=> true\n```\n\n**Valid patterns**\n\n```js\nisValidGlob('a');\nisValidGlob('a.js');\nisValidGlob('*.js');\nisValidGlob(['a', 'b']);\n//=> all true\n```\n\n**Invalid patterns**\n\n```js\nisValidGlob();\nisValidGlob('');\nisValidGlob(null);\nisValidGlob(undefined);\nisValidGlob(new Buffer('foo'));\nisValidGlob(['foo', [[]]]);\nisValidGlob(['foo', [['bar']]]);\nisValidGlob(['foo', {}]);\nisValidGlob({});\nisValidGlob([]);\nisValidGlob(['']);\n//=> all false\n```\n\n## About\n\n### Related projects\n\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* [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/micromatch/micromatch \"Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch.\")\n* [vinyl-fs](https://www.npmjs.com/package/vinyl-fs): Vinyl adapter for the file system | [homepage](http://github.com/wearefractal/vinyl-fs \"Vinyl adapter for the file system\")\n* [vinyl](https://www.npmjs.com/package/vinyl): Virtual file format. | [homepage](https://github.com/gulpjs/vinyl#readme \"Virtual file format.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Contributors\n\n| **Commits** | **Contributor** | \n| --- | --- |\n| 9 | [jonschlinkert](https://github.com/jonschlinkert) |\n| 2 | [contra](https://github.com/contra) |\n\n### Building docs\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n### Running tests\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on June 21, 2017._","_attachments":{},"homepage":"https://github.com/jonschlinkert/is-valid-glob","bugs":{"url":"https://github.com/jonschlinkert/is-valid-glob/issues"},"license":"MIT"}