No description
Find a file
2016-09-03 14:05:00 -04:00
.gitattributes first commit 2015-03-06 16:01:02 -05:00
.gitignore first commit 2015-03-06 16:01:02 -05:00
.jshintrc first commit 2015-03-06 16:01:02 -05:00
.travis.yml first commit 2015-03-06 16:01:02 -05:00
.verb.md first commit 2015-03-06 16:01:02 -05:00
browser.js first commit 2015-03-06 16:01:02 -05:00
index.js support for escaped characters 2016-09-03 14:05:00 -04:00
LICENSE first commit 2015-03-06 16:01:02 -05:00
package.json first commit 2015-03-06 16:01:02 -05:00
README.md first commit 2015-03-06 16:01:02 -05:00
test.js support for escaped characters 2016-09-03 14:05:00 -04:00

is-extglob NPM version Build Status

Returns true if a string has an extglob.

Install with npm

npm i is-extglob --save

Usage

var isExtglob = require('is-extglob');

True

isExtglob('?(abc)');
isExtglob('@(abc)');
isExtglob('!(abc)');
isExtglob('*(abc)');
isExtglob('+(abc)');

False

Everything else...

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');
  • 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.

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

License

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


This file was generated by verb-cli on March 06, 2015.