CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-picomatch

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

1.45x
Overview
Eval results
Files

rubric.jsonevals/scenario-4/

{
  "context": "This criteria evaluates the engineer's proficiency in using picomatch's ?(pattern) extglob feature to implement optional pattern matching. It assesses proper usage of picomatch API methods and correct application of the optional matching syntax.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses picomatch function",
      "description": "Implementation uses the picomatch() function or picomatch.isMatch() to create a matcher from a glob pattern",
      "max_score": 20
    },
    {
      "name": "?(pattern) syntax usage",
      "description": "Pattern string correctly uses the ?(pattern) extglob syntax to represent optional components (matches zero or one occurrence)",
      "max_score": 30
    },
    {
      "name": "Optional extension handling",
      "description": "Pattern correctly handles optional file extensions using ?(.ext) syntax, allowing files with or without the extension to match",
      "max_score": 15
    },
    {
      "name": "Optional sequence matching",
      "description": "Pattern correctly uses ?(sequence) to match optional character sequences, prefixes, or suffixes within filenames",
      "max_score": 20
    },
    {
      "name": "Returns matcher function",
      "description": "Implementation returns a reusable function that can validate multiple inputs against the pattern, leveraging picomatch's ability to create cached matchers",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-picomatch

tile.json