Sha256: 22f51aa4359dd44e9e6bd25ba8d3ebd95c1a1f1f1d2780931b124595738a9f0f

Contents?: true

Size: 1.66 KB

Versions: 16

Compression:

Stored size: 1.66 KB

Contents

# is-glob [![NPM version](https://badge.fury.io/js/is-glob.svg)](http://badge.fury.io/js/is-glob)  [![Build Status](https://travis-ci.org/jonschlinkert/is-glob.svg)](https://travis-ci.org/jonschlinkert/is-glob) 

> Returns `true` if the given string looks like a glob pattern.

## Install with [npm](npmjs.org)

```bash
npm i is-glob --save
```

## Usage

```js
var isGlob = require('is-glob');

isGlob('foo.js');
//=> 'false'
isGlob('!foo.js');
//=> 'true'
isGlob('*.js');
//=> 'true'
isGlob('**/abc.js');
//=> 'true'
isGlob('abc/*.js');
//=> 'true'
isGlob('abc/(aaa|bbb).js');
//=> 'true'
isGlob('abc/[a-z].js');
//=> 'true'
isGlob('abc/{a,b}.js');
//=> 'true'
isGlob('abc/?.js');
//=> 'true'
isGlob('abc.js');
//=> 'false'
isGlob('abc/def/ghi.js');
//=> 'false'
```

## Related
* [micromatch](https://github.com/jonschlinkert/micromatch): Glob matching for javascript/node.js. A faster alternative to minimatch (10-45x faster on avg), with all the features you're used to using in your Grunt and gulp tasks.
* [parse-glob](https://github.com/jonschlinkert/parse-glob): Parse a glob pattern into an object of tokens.

## Run tests
Install dev dependencies.

```bash
npm i -d && npm test
```


## Contributing
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/is-glob/issues)


## Author

**Jon Schlinkert**
 
+ [github/jonschlinkert](https://github.com/jonschlinkert)
+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert) 

## License
Copyright (c) 2015 Jon Schlinkert  
Released under the MIT license

***

_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on March 04, 2015._

Version data entries

16 entries across 16 versions & 3 rubygems

Version Path
es6_tilt-0.1.2 test/dummy/app/assets/javascripts/node_modules/micromatch/node_modules/is-glob/README.md
es6_tilt-0.1.1 test/dummy/app/assets/javascripts/node_modules/micromatch/node_modules/is-glob/README.md
es6_tilt-0.1.0 test/dummy/app/assets/javascripts/node_modules/micromatch/node_modules/is-glob/README.md
hooch-0.4.2 jasmine/node_modules/karma/node_modules/chokidar/node_modules/is-glob/README.md
hooch-0.4.1 jasmine/node_modules/karma/node_modules/chokidar/node_modules/is-glob/README.md
hooch-0.4.0 jasmine/node_modules/karma/node_modules/chokidar/node_modules/is-glob/README.md
gulp_assets-1.0.0.pre.5 template/node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/is-glob/README.md
gulp_assets-1.0.0.pre.4 template/node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/is-glob/README.md
gulp_assets-1.0.0.pre.3 template/node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/is-glob/README.md
hooch-0.3.0 jasmine/node_modules/karma/node_modules/chokidar/node_modules/is-glob/README.md
hooch-0.2.1 jasmine/node_modules/karma/node_modules/chokidar/node_modules/is-glob/README.md
hooch-0.2.0 jasmine/node_modules/karma/node_modules/chokidar/node_modules/is-glob/README.md
hooch-0.1.0 jasmine/node_modules/karma/node_modules/chokidar/node_modules/is-glob/README.md
hooch-0.0.8 jasmine/node_modules/karma/node_modules/chokidar/node_modules/is-glob/README.md
hooch-0.0.7 jasmine/node_modules/karma/node_modules/chokidar/node_modules/is-glob/README.md
hooch-0.0.6 jasmine/node_modules/karma/node_modules/chokidar/node_modules/is-glob/README.md