Event based JavaScript for the browser with comprehensive event management API
91
{
"context": "This criteria evaluates how effectively the engineer uses wolfy87-eventemitter's event definition capabilities (defineEvent and defineEvents methods) to build an event registry that enables pattern-based operations. The focus is on proper usage of these methods to prepare events for regex matching.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses EventEmitter instance",
"description": "Creates an EventEmitter instance (either new EventEmitter() or EventEmitter constructor usage) to serve as the event registry",
"max_score": 15
},
{
"name": "Implements defineEvent",
"description": "Uses the defineEvent() method to register single event names, enabling them for pattern-based operations",
"max_score": 25
},
{
"name": "Implements defineEvents",
"description": "Uses the defineEvents() method to register multiple event names from an array in a single operation",
"max_score": 25
},
{
"name": "Regex listener attachment",
"description": "Uses addListener() or on() with regex patterns (e.g., /user\\..*/)) to attach listeners to multiple registered events simultaneously",
"max_score": 20
},
{
"name": "Regex event emission",
"description": "Uses emitEvent() or emit() with regex patterns to trigger listeners on multiple registered events that match the pattern",
"max_score": 15
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-wolfy87-eventemitterdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10