CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-cronstrue

Convert cron expressions into human readable descriptions

Overall
score

100%

Overview
Eval results
Files

rubric.jsonevals/scenario-5/

{
  "context": "This criteria evaluates how well the engineer uses the cronstrue package to implement time format configuration functionality, specifically focusing on the use24HourTimeFormat option for converting cron expressions with different time display formats.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Import cronstrue",
      "description": "The implementation correctly imports or requires the cronstrue package (e.g., const cronstrue = require('cronstrue') or import cronstrue from 'cronstrue').",
      "max_score": 15
    },
    {
      "name": "Use toString function",
      "description": "The implementation uses the cronstrue.toString() function or cronstrue default export to convert cron expressions to human-readable text.",
      "max_score": 25
    },
    {
      "name": "Pass use24HourTimeFormat option",
      "description": "The implementation correctly passes the use24HourTimeFormat option to cronstrue.toString() as part of the options object (e.g., { use24HourTimeFormat: true } or { use24HourTimeFormat: false }).",
      "max_score": 35
    },
    {
      "name": "Handle options parameter",
      "description": "The implementation correctly receives and uses the options parameter from the function signature, extracting the use24HourTimeFormat value and passing it to cronstrue.",
      "max_score": 15
    },
    {
      "name": "Return formatted string",
      "description": "The implementation returns the result from cronstrue.toString() as the output of the formatSchedule function.",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-cronstrue

tile.json