CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-update-notifier

Update notifications for your CLI app

Overall
score

97%

Overview
Eval results
Files

rubric.jsonevals/scenario-9/

{
  "context": "This criteria evaluates how effectively the engineer uses the update-notifier package's programmatic update checking capability, specifically the fetchInfo() method, to build a CLI tool that reports on available package updates.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "UpdateNotifier instantiation",
      "description": "Creates an UpdateNotifier instance by calling updateNotifier() with a pkg object containing name and version properties from package.json",
      "max_score": 20
    },
    {
      "name": "fetchInfo() usage",
      "description": "Calls the fetchInfo() method on the UpdateNotifier instance to programmatically retrieve update information",
      "max_score": 25
    },
    {
      "name": "Promise handling",
      "description": "Properly handles the Promise returned by fetchInfo() using async/await or .then()/.catch()",
      "max_score": 15
    },
    {
      "name": "Update info extraction",
      "description": "Correctly extracts and uses the current, latest, and type properties from the update information object returned by fetchInfo()",
      "max_score": 20
    },
    {
      "name": "Conditional logic",
      "description": "Implements appropriate conditional logic to check if an update is available (e.g., checking if the update object exists or comparing versions)",
      "max_score": 10
    },
    {
      "name": "Error handling",
      "description": "Implements error handling for fetchInfo() calls to catch and handle potential failures during update checking",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-update-notifier

tile.json