Eric Foster 35b96bc934 initial commit | 6 vuotta sitten | |
---|---|---|
.. | ||
LICENSE | 6 vuotta sitten | |
README.md | 6 vuotta sitten | |
index.js | 6 vuotta sitten | |
package.json | 6 vuotta sitten |
Returns true if a string has an extglob.
npm i is-extglob --save
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');
Install dev dependencies.
npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Jon Schlinkert
Copyright (c) 2015 Jon Schlinkert
Released under the MIT license
This file was generated by verb-cli on March 06, 2015.