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

{
  "context": "This evaluation assesses how well the engineer uses the is-buffer package to detect Buffer objects as a lightweight alternative to Buffer.isBuffer(). The focus is on proper package integration, correct API usage, and appropriate application of the buffer detection capability.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Package Import",
      "description": "Correctly imports the is-buffer package using require('is-buffer') and assigns it to a variable (e.g., const isBuffer = require('is-buffer'))",
      "max_score": 15
    },
    {
      "name": "Core Detection Usage",
      "description": "Uses the imported is-buffer function to check if the input data parameter is a Buffer (e.g., isBuffer(data))",
      "max_score": 35
    },
    {
      "name": "Result Integration",
      "description": "Correctly uses the boolean result from is-buffer to populate the isBinary property of the returned object",
      "max_score": 25
    },
    {
      "name": "Logical Application",
      "description": "Correctly derives the needsConversion property as the logical inverse of the is-buffer result (needsConversion should be true when is-buffer returns false)",
      "max_score": 25
    }
  ]
}

tile.json