Initial commit
[yaffs-website] / node_modules / is-extglob / README.md
1 # is-extglob [![NPM version](https://badge.fury.io/js/is-extglob.svg)](http://badge.fury.io/js/is-extglob)  [![Build Status](https://travis-ci.org/jonschlinkert/is-extglob.svg)](https://travis-ci.org/jonschlinkert/is-extglob) 
2
3 > Returns true if a string has an extglob.
4
5 ## Install with [npm](npmjs.org)
6
7 ```bash
8 npm i is-extglob --save
9 ```
10
11 ## Usage
12
13 ```js
14 var isExtglob = require('is-extglob');
15 ```
16
17 **True**
18
19 ```js
20 isExtglob('?(abc)');
21 isExtglob('@(abc)');
22 isExtglob('!(abc)');
23 isExtglob('*(abc)');
24 isExtglob('+(abc)');
25 ```
26
27 **False**
28
29 Everything else...
30
31 ```js
32 isExtglob('foo.js');
33 isExtglob('!foo.js');
34 isExtglob('*.js');
35 isExtglob('**/abc.js');
36 isExtglob('abc/*.js');
37 isExtglob('abc/(aaa|bbb).js');
38 isExtglob('abc/[a-z].js');
39 isExtglob('abc/{a,b}.js');
40 isExtglob('abc/?.js');
41 isExtglob('abc.js');
42 isExtglob('abc/def/ghi.js');
43 ```
44
45 ## Related
46 * [extglob](https://github.com/jonschlinkert/extglob): Extended globs. extglobs add the expressive power of regular expressions to glob patterns.
47 * [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.
48 * [parse-glob](https://github.com/jonschlinkert/parse-glob): Parse a glob pattern into an object of tokens.
49
50 ## Run tests
51 Install dev dependencies.
52
53 ```bash
54 npm i -d && npm test
55 ```
56
57
58 ## Contributing
59 Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/is-extglob/issues)
60
61
62 ## Author
63
64 **Jon Schlinkert**
65  
66 + [github/jonschlinkert](https://github.com/jonschlinkert)
67 + [twitter/jonschlinkert](http://twitter.com/jonschlinkert) 
68
69 ## License
70 Copyright (c) 2015 Jon Schlinkert  
71 Released under the MIT license
72
73 ***
74
75 _This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on March 06, 2015._