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-3/

{
  "context": "This evaluation assesses how well the engineer uses the is-buffer package to implement edge case handling for buffer validation. The focus is on correctly utilizing is-buffer's capabilities to distinguish genuine Buffers from impostor objects with misleading isBuffer properties.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "is-buffer import",
      "description": "Solution imports the is-buffer package using require() or import statement",
      "max_score": 10
    },
    {
      "name": "isBuffer function usage",
      "description": "Solution uses the isBuffer() function from the is-buffer package as the primary validation mechanism",
      "max_score": 30
    },
    {
      "name": "Direct delegation",
      "description": "Solution delegates buffer validation directly to is-buffer's isBuffer() function rather than reimplementing validation logic",
      "max_score": 25
    },
    {
      "name": "Edge case handling",
      "description": "Solution correctly handles edge cases by relying on is-buffer's built-in handling of null, undefined, objects with isBuffer properties, and malformed objects",
      "max_score": 25
    },
    {
      "name": "No redundant checks",
      "description": "Solution avoids adding redundant null/undefined checks or manual isBuffer property validation that duplicates is-buffer's functionality",
      "max_score": 10
    }
  ]
}

tile.json