Blazing fast and accurate glob matcher written in JavaScript, with no dependencies and full support for standard and extended Bash glob features, including braces, extglobs, POSIX brackets, and regular expressions.
83
A utility that compiles glob patterns into regular expressions for custom pattern matching.
@generates
/**
* Compiles a glob pattern into a regular expression
* @param {string} pattern - The glob pattern to compile
* @returns {RegExp} The compiled regular expression
*/
function compilePattern(pattern) {}
/**
* Tests if a string matches the compiled pattern
* @param {string} input - The string to test
* @param {RegExp} regex - The compiled regular expression
* @returns {boolean} True if the string matches
*/
function testMatch(input, regex) {}
module.exports = {
compilePattern,
testMatch
};Provides glob pattern parsing and regex compilation support.
Install with Tessl CLI
npx tessl i tessl/npm-picomatchevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10