CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-ulid

A universally-unique, lexicographically-sortable, identifier generator

78

1.34x
Overview
Eval results
Files

rubric.jsonevals/scenario-6/

{
  "context": "This criteria evaluates how well the engineer uses the ULID package's decodeTime function and related validation functions to implement a time-based ULID filter. The focus is on proper usage of decodeTime to extract timestamps and isValid to handle invalid ULIDs.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses decodeTime",
      "description": "Uses the decodeTime function from the ulid package to extract timestamps from ULID strings",
      "max_score": 40
    },
    {
      "name": "Uses isValid",
      "description": "Uses the isValid function from the ulid package to validate ULIDs before processing or uses try-catch to handle invalid ULIDs when calling decodeTime",
      "max_score": 25
    },
    {
      "name": "Proper filtering logic",
      "description": "Correctly filters ULIDs by comparing decoded timestamps against the provided time range (inclusive on both boundaries)",
      "max_score": 20
    },
    {
      "name": "Handles invalid ULIDs",
      "description": "Implementation gracefully handles invalid ULID strings by skipping them rather than throwing errors that halt execution",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-ulid

tile.json