• Stars
    star
    23
  • Rank 1,016,462 (Top 21 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 9 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Return true if a value is a valid glob pattern string, or array of glob patterns.

More Repositories

1

micromatch

Highly optimized wildcard and glob matching library. Faster, drop-in replacement to minimatch and multimatch. Used by square, webpack, babel core, yarn, jest, ract-native, taro, bulma, browser-sync, stylelint, nyc, ava, and many others! Follow micromatch's author: https://github.com/jonschlinkert
JavaScript
2,781
star
2

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. Used by GraphQL, Jest, Astro, Snowpack, Storybook, bulma, Serverless, fdir, Netlify, AWS Amplify, Revogrid, rollup, routify, open-wc, imba, ava, docusaurus, fast-glob, globby, chokidar, anymatch, cloudflare/miniflare, pts, and more than 5 million projects! Please follow picomatch's author: https://github.com/jonschlinkert
JavaScript
744
star
3

anymatch

‼️ Matches strings against configurable strings, globs, regular expressions, and/or functions
JavaScript
388
star
4

braces

Faster brace expansion for node.js. Besides being faster, braces is not subject to DoS attacks like minimatch, is more accurate, and has more complete support for Bash 4.3.
JavaScript
220
star
5

to-regex-range

Pass two numbers, get a regex-compatible source string for matching ranges. Fast compiler, optimized regex, and validated against more than 2.78 million test assertions. Useful for creating regular expressions to validate numbers, ranges, years, etc.
JavaScript
126
star
6

nanomatch

Fast, minimal glob matcher for node.js. Similar to micromatch, minimatch and multimatch, but without support for extended globs (extglobs), posix brackets or braces, and with complete Bash 4.3 wildcard support: ("*", "**", and "?").
JavaScript
95
star
7

is-glob

If you use globs, this will make your code faster. Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a better user experience. 55+ million downloads.
JavaScript
91
star
8

glob-fs

file globbing for node.js. speedy and powerful alternative to node-glob. This library is experimental and does not work on windows!
JavaScript
54
star
9

extglob

Extended globs. Add (almost) the expressive power of regular expressions to glob patterns.
JavaScript
31
star
10

expand-brackets

Expand POSIX bracket expressions (character classes) in glob patterns.
JavaScript
27
star
11

parse-glob

Parse a glob pattern into an object of path parts.
JavaScript
25
star
12

posix-character-classes

POSIX character classes for creating regular expressions.
JavaScript
25
star
13

is-extglob

Returns true if a string has an extglob
JavaScript
20
star
14

to-absolute-glob

Make a glob pattern absolute, ensuring that negative globs and patterns with trailing slashes are correctly handled.
JavaScript
18
star
15

glob-base

Returns an object with the base path and the actual pattern from a glob.
JavaScript
17
star
16

bash-glob

Bash-powered globbing for node.js. Alternative to node-glob. Does not work on Windows 9 and lower.
JavaScript
13
star
17

is-posix-bracket

Returns true if the given string is a POSIX bracket expression (POSIX character class)
JavaScript
12
star
18

expand-braces

Wrapper for [braces] to enable brace expansion for arrays of patterns.
JavaScript
7
star
19

has-glob

Returns `true` if an array has a glob pattern.
JavaScript
7
star
20

is-negated-glob

Returns an object with a `negated` boolean and the `!` stripped from negation patterns. Also respects extglobs.
JavaScript
7
star
21

bash-match

Match strings using bash. Does not work on windows, and does not read from the file system. This library requires that Bash 4.3 or higher is installed and is mostly used for checking parity in unit tests.
JavaScript
6
star
22

bash-path

Get the path to the bash binary on your OS.
JavaScript
6
star
23

resolve-glob

Ensures that absolute file paths are always returned from a glob pattern or array of glob patterns.
JavaScript
5
star
24

glob-spec

Specification for glob-matching in JavaScript.
4
star
25

.github

Default files for the .github directory of all micromatch projects.
3
star