CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-safe-stable-stringify

Deterministic and safely JSON.stringify to quickly serialize JavaScript objects

89

1.08x
Quality

Pending

Does it follow best practices?

Impact

89%

1.08x

Average score across 10 eval scenarios

SecuritybySnyk

Pending

The risk profile of this skill

Overview
Eval results
Files

criteria.jsonevals/scenario-8/

{
  "context": "This criteria evaluates how well the engineer uses safe-stable-stringify's deterministic key ordering capability to generate consistent hash strings from objects. The focus is on proper usage of the package's stringify function with deterministic behavior enabled by default.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Imports stringify",
      "description": "Uses require() or import to load the stringify function from the safe-stable-stringify package",
      "max_score": 15
    },
    {
      "name": "Uses stringify function",
      "description": "Calls the stringify() function (or a configured variant) from safe-stable-stringify to serialize objects into strings",
      "max_score": 35
    },
    {
      "name": "Leverages deterministic ordering",
      "description": "Relies on the default deterministic behavior of safe-stable-stringify (alphabetically sorted keys) without needing to explicitly configure it, OR explicitly configures deterministic: true if using configure()",
      "max_score": 30
    },
    {
      "name": "Returns string output",
      "description": "The function returns the string output from stringify() as the final hash representation, enabling consistent hashing",
      "max_score": 20
    }
  ]
}

tile.json