CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-wolfy87-eventemitter

Event based JavaScript for the browser with comprehensive event management API

91

1.26x
Overview
Eval results
Files

rubric.jsonevals/scenario-4/

{
  "context": "This criteria evaluates how effectively an engineer uses wolfy87-eventemitter's bulk listener operations API to implement a notification center. The focus is on proper usage of addListeners() and removeListeners() methods for efficient multi-handler registration and removal.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "EventEmitter Integration",
      "description": "NotificationCenter correctly extends or incorporates EventEmitter as its underlying event management system",
      "max_score": 15
    },
    {
      "name": "addListeners Usage",
      "description": "Uses addListeners() method to register multiple handlers at once for a single notification type (array format)",
      "max_score": 25
    },
    {
      "name": "Object Format Registration",
      "description": "Uses addListeners() with object format to register handlers for multiple notification types in a single operation",
      "max_score": 25
    },
    {
      "name": "removeListeners Usage",
      "description": "Uses removeListeners() method to efficiently remove multiple handlers from a notification type",
      "max_score": 20
    },
    {
      "name": "Listener Retrieval",
      "description": "Uses getListeners() or flattenListeners() methods to retrieve handlers for a notification type",
      "max_score": 10
    },
    {
      "name": "Event Emission",
      "description": "Uses emit() or emitEvent() to trigger notifications to all registered handlers",
      "max_score": 5
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-wolfy87-eventemitter

tile.json