CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-safe-stable-stringify

Deterministic and safely JSON.stringify to quickly serialize JavaScript objects

90

1.08x

Evaluation90%

1.08x

Agent success when using this tile

Overview
Eval results
Files

rubric.jsonevals/scenario-3/

{
  "context": "This criteria evaluates how well the engineer uses safe-stable-stringify as a drop-in replacement for JSON.stringify, focusing on the basic stringify function signature and parameter support (value, replacer, space).",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses safe-stable-stringify",
      "description": "Imports and uses the stringify function from safe-stable-stringify package (either default export or named export)",
      "max_score": 25
    },
    {
      "name": "Accepts value parameter",
      "description": "The serializeConfig function accepts the value parameter and passes it to stringify as the first argument",
      "max_score": 15
    },
    {
      "name": "Supports replacer parameter",
      "description": "The serializeConfig function accepts the replacer parameter (function or array) and passes it to stringify as the second argument, enabling both function replacers and array replacers",
      "max_score": 25
    },
    {
      "name": "Supports space parameter",
      "description": "The serializeConfig function accepts the space parameter (number or string) and passes it to stringify as the third argument for indentation/formatting",
      "max_score": 25
    },
    {
      "name": "Returns string result",
      "description": "The serializeConfig function returns the string result from stringify without modification",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-safe-stable-stringify

tile.json