CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-is-buffer

Determine if an object is a Buffer without including the full buffer module

93

1.02x
Quality

Pending

Does it follow best practices?

Impact

93%

1.02x

Average score across 9 eval scenarios

SecuritybySnyk

Pending

The risk profile of this skill

Overview
Eval results
Files

criteria.jsonevals/scenario-2/

{
  "context": "This criteria evaluates how effectively the engineer uses the is-buffer package to implement a Buffer type validator. The focus is exclusively on correct usage of the package's API to detect Buffer objects and handle various input types.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Package import",
      "description": "Correctly imports the is-buffer package using require() or import statement",
      "max_score": 10
    },
    {
      "name": "Core function usage",
      "description": "Uses the isBuffer function from the is-buffer package as the primary mechanism for Buffer detection",
      "max_score": 40
    },
    {
      "name": "Direct delegation",
      "description": "Delegates the validation logic directly to is-buffer's isBuffer function rather than implementing custom Buffer detection logic",
      "max_score": 30
    },
    {
      "name": "Correct return values",
      "description": "Returns the boolean result from is-buffer's isBuffer function correctly for all test cases (Buffer.from, Buffer.alloc, null, undefined, strings, numbers, objects, arrays)",
      "max_score": 20
    }
  ]
}

tile.json