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

{
  "context": "This criteria evaluates how effectively the engineer uses the update-notifier package to implement a CLI tool with update notifications. The focus is on proper initialization, configuration, and usage of update-notifier's API to achieve non-intrusive update checking with minimal performance overhead.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Package Import",
      "description": "Correctly imports the update-notifier package using require() or import statement",
      "max_score": 10
    },
    {
      "name": "Package.json Import",
      "description": "Imports and provides the package.json file containing name and version to update-notifier",
      "max_score": 15
    },
    {
      "name": "Factory Initialization",
      "description": "Calls the updateNotifier factory function with a configuration object containing the pkg property (pkg.name and pkg.version)",
      "max_score": 20
    },
    {
      "name": "Notify Method",
      "description": "Calls the notify() method on the UpdateNotifier instance to display update notifications",
      "max_score": 20
    },
    {
      "name": "Automatic Environment Detection",
      "description": "Relies on update-notifier's built-in environment detection (CI, test, NO_UPDATE_NOTIFIER) rather than implementing custom environment checks",
      "max_score": 15
    },
    {
      "name": "Deferred Notification",
      "description": "Uses default deferred notification behavior or explicitly configures defer option to ensure notifications appear after main program output",
      "max_score": 10
    },
    {
      "name": "Automatic Caching",
      "description": "Relies on update-notifier's automatic caching and check interval management without implementing custom caching logic",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-update-notifier

tile.json