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

{
  "context": "This criteria evaluates how effectively the engineer uses the is-buffer package to implement buffer type validation. The focus is on correct package usage, proper import/require statements, and appropriate function invocation.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Package Import",
      "description": "The is-buffer package is correctly imported using require() (CommonJS) or import statement, assigned to a variable (commonly 'isBuffer')",
      "max_score": 15
    },
    {
      "name": "Direct Function Usage",
      "description": "The imported isBuffer function is directly invoked in the validateBuffer implementation to check if data is a Buffer",
      "max_score": 40
    },
    {
      "name": "Return Value Usage",
      "description": "The boolean return value from isBuffer() is correctly used or returned from validateBuffer(), without unnecessary transformations or modifications",
      "max_score": 25
    },
    {
      "name": "No Reimplementation",
      "description": "The solution does not reimplement buffer type checking logic (e.g., checking instanceof Buffer, constructor properties, etc.) but instead relies on the is-buffer package",
      "max_score": 20
    }
  ]
}

tile.json