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

{
  "context": "This criteria evaluates how effectively the engineer uses the wolfy87-eventemitter package to implement event emission functionality. The focus is on proper usage of EventEmitter's listener registration and event triggering methods to build a notification dispatcher.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "EventEmitter instantiation",
      "description": "Creates an instance of EventEmitter (imported from 'wolfy87-eventemitter') to manage events, either by instantiation or inheritance",
      "max_score": 15
    },
    {
      "name": "Listener registration",
      "description": "Uses EventEmitter's addListener() or on() method to subscribe handlers to notification types",
      "max_score": 25
    },
    {
      "name": "Event emission",
      "description": "Uses EventEmitter's emit() or emitEvent() method to trigger notifications",
      "max_score": 25
    },
    {
      "name": "Argument passing",
      "description": "Correctly passes multiple arguments to event handlers using emit() with variadic arguments or emitEvent() with an array",
      "max_score": 20
    },
    {
      "name": "Handler execution order",
      "description": "Relies on EventEmitter's built-in behavior to execute handlers in the order they were registered",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-wolfy87-eventemitter

tile.json