shrine-medco/shrine-webclient/src/main/html/node_modules/is-extglob23de2099ce18release/1.22.2.4
shrine-medco/shrine-webclient/src/main/html/node_modules/is-extglob
23de2099ce18release/1.22.2.4
is-extglob
is-extglob
README.md
README.md
is-extglob ![NPM version](http://badge.fury.io/js/is-extglob) ![Build Status](https://travis-ci.org/jonschlinkert/is-extglob)
Returns true if a string has an extglob.
Install with [npm](npmjs.org)
bash npm i is-extglob --save
Usage
js var isExtglob = require('is-extglob');
True
js isExtglob('?(abc)'); isExtglob('@(abc)'); isExtglob('!(abc)'); isExtglob('*(abc)'); isExtglob('+(abc)');
False
Everything else...
js isExtglob('foo.js'); isExtglob('!foo.js'); isExtglob('*.js'); isExtglob('**/abc.js'); isExtglob('abc/*.js'); isExtglob('abc/(aaa|bbb).js'); isExtglob('abc/[a-z].js'); isExtglob('abc/{a,b}.js'); isExtglob('abc/?.js'); isExtglob('abc.js'); isExtglob('abc/def/ghi.js');
- Related
- extglob: Extended globs. extglobs add the expressive power of regular expressions to glob patterns.
- 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: 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
Author
Jon Schlinkert
+ github/jonschlinkert + twitter/jonschlinkert
License
Copyright (c) 2015 Jon Schlinkert Released under the MIT license
_This file was generated by verb-cli on March 06, 2015._
c4science · Help