All Projects → micromatch → Is Extglob

micromatch / Is Extglob

Licence: mit
Returns true if a string has an extglob

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Is Extglob

glob
Golang glob
Stars: ✭ 14 (-26.32%)
Mutual labels:  glob
glob-tool
A tool to test globs against sets of test strings quickly and easily for the DigitalOcean Community.
Stars: ✭ 14 (-26.32%)
Mutual labels:  glob
Picomatch
Blazing fast and accurate glob matcher written JavaScript, with no dependencies and full support for standard and extended Bash glob features, including braces, extglobs, POSIX brackets, and regular expressions.
Stars: ✭ 393 (+1968.42%)
Mutual labels:  glob
dir-glob
Convert directories to glob compatible strings
Stars: ✭ 41 (+115.79%)
Mutual labels:  glob
delete-empty
Recursively delete all empty folders in a directory and child directories.
Stars: ✭ 38 (+100%)
Mutual labels:  glob
witch
Dead simple watching
Stars: ✭ 15 (-21.05%)
Mutual labels:  glob
Glob
Glob for Swift 5
Stars: ✭ 20 (+5.26%)
Mutual labels:  glob
Tiny Glob
Super tiny and ~350% faster alternative to node-glob
Stars: ✭ 710 (+3636.84%)
Mutual labels:  glob
replace-in-files
Replace text in one or more files or globs.
Stars: ✭ 21 (+10.53%)
Mutual labels:  glob
Replace In File
A simple utility to quickly replace contents in one or more files
Stars: ✭ 369 (+1842.11%)
Mutual labels:  glob
is-valid-glob
Return true if a value is a valid glob pattern string, or array of glob patterns.
Stars: ✭ 21 (+10.53%)
Mutual labels:  glob
bash-glob
Bash-powered globbing for node.js. Alternative to node-glob. Does not work on Windows 9 and lower.
Stars: ✭ 13 (-31.58%)
Mutual labels:  glob
Dotnet.glob
A fast globbing library for .NET / .NETStandard applications. Outperforms Regex.
Stars: ✭ 259 (+1263.16%)
Mutual labels:  glob
auto-request-review
A GitHub Action that automatically requests review of a pull request based on files changes and/or groups the author belongs to 🤖
Stars: ✭ 52 (+173.68%)
Mutual labels:  glob
Cpx
A cli tool to watch and copy file globs.
Stars: ✭ 394 (+1973.68%)
Mutual labels:  glob
sic
🦜 Accessible image processing and conversion from the terminal. Front-end for image-rs/image.
Stars: ✭ 96 (+405.26%)
Mutual labels:  glob
extglob
Extended globs. Add (almost) the expressive power of regular expressions to glob patterns.
Stars: ✭ 25 (+31.58%)
Mutual labels:  glob
Fdir
⚡ The fastest directory crawler & globbing library for NodeJS. Crawls 1m files in < 1s
Stars: ✭ 777 (+3989.47%)
Mutual labels:  glob
Glob
Go glob
Stars: ✭ 670 (+3426.32%)
Mutual labels:  glob
Anymatch
‼️ Matches strings against configurable strings, globs, regular expressions, and/or functions
Stars: ✭ 289 (+1421.05%)
Mutual labels:  glob

is-extglob NPM version NPM downloads Build Status

Returns true if a string has an extglob.

Install

Install with npm:

$ npm install is-extglob

Usage

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

True

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

False

Escaped extglobs:

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

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

History

v2.0

Adds support for escaping. Escaped exglobs no longer return true.

About

Related projects

  • has-glob: Returns true if an array has a glob pattern. | homepage
  • is-glob: Returns true if the given string looks like a glob pattern or an extglob pattern… more | homepage
  • micromatch: Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch. | homepage

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Building docs

(This document was generated by verb-generate-readme (a verb generator), please don't edit the readme directly. Any changes to the readme must be made in .verb.md.)

To generate the readme and API documentation with verb:

$ npm install -g verb verb-generate-readme && verb

Running tests

Install dev dependencies:

$ npm install -d && npm test

Author

Jon Schlinkert

License

Copyright © 2016, Jon Schlinkert. Released under the MIT license.


This file was generated by verb-generate-readme, v0.1.31, on October 12, 2016.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].