Glob matching for javascript/node.js, a replacement and faster alternative to minimatch and multimatch
90
{
"context": "This criteria evaluates how well the engineer uses the micromatch package to filter arrays of file paths based on glob patterns. The focus is on whether they leverage micromatch's core array filtering functions appropriately rather than implementing pattern matching from scratch.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses micromatch",
"description": "Implementation imports and uses the micromatch package (directly calls micromatch() or micromatch.match() function)",
"max_score": 40
},
{
"name": "Array filtering",
"description": "Correctly passes the paths array as the first argument to micromatch for filtering",
"max_score": 25
},
{
"name": "Pattern handling",
"description": "Correctly passes the patterns parameter (string or array) as the second argument to micromatch",
"max_score": 25
},
{
"name": "Return value",
"description": "Returns the filtered array result from micromatch without unnecessary post-processing",
"max_score": 10
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-micromatchdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10