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-4/

{
  "context": "This criteria evaluates how well the engineer uses the update-notifier package to implement custom distribution tag support for tracking pre-release versions. The focus is on proper usage of the distTag option, update check intervals, and environment-based notification controls.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "updateNotifier import",
      "description": "Correctly imports and uses the updateNotifier package (default export or named import)",
      "max_score": 10
    },
    {
      "name": "distTag option usage",
      "description": "Uses the distTag option when creating the notifier instance to specify a custom distribution tag (e.g., 'beta', 'next', 'canary') instead of the default 'latest'",
      "max_score": 25
    },
    {
      "name": "pkg object structure",
      "description": "Properly passes the pkg object containing name and version properties to updateNotifier",
      "max_score": 15
    },
    {
      "name": "updateCheckInterval configuration",
      "description": "Uses the updateCheckInterval option to configure custom check frequency in milliseconds",
      "max_score": 20
    },
    {
      "name": "notify() method",
      "description": "Calls the notify() method on the updateNotifier instance to display notifications",
      "max_score": 15
    },
    {
      "name": "Environment-based disable",
      "description": "Implementation correctly respects environment variables for disabling notifications (NO_UPDATE_NOTIFIER is automatically handled by updateNotifier)",
      "max_score": 10
    },
    {
      "name": "Return value handling",
      "description": "Returns or exposes the notifier instance or provides a proper interface for the tracker functionality",
      "max_score": 5
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-update-notifier

tile.json