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