{"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":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"b166fdd9de107d0a1a2d35b3aaebf4b9d75e043e","tarball":"http://registry-npm.ywwl.com/is-valid-glob/download/is-valid-glob-0.1.0.tgz","integrity":"sha512-PVMHyHTY1z3UpbbHEgPf1v95Y8GKojtXUnh/26EPHeq5/U/rntGJiP7ldzC33R4b54TP4zZjf0MzVy0mcJA5/Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEI+sJVjNJfaeP5Orvo03a7ypeheRlXA8VzxVjwLR6meAiBNpiEU15J/P17QrEFp3CDFXQGgeccmHa6SdFi0183QCA=="}],"size":2248,"noattachment":false,"key":"/is-valid-glob/-/is-valid-glob-0.1.0.tgz"},"directories":{},"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._","publish_time":1435723589393,"_cnpm_publish_time":1435723589393,"dist-tags":{"latest":"1.0.0"}}