Event based JavaScript for the browser with comprehensive event management API
91
{
"context": "This criteria evaluates how well the engineer leverages wolfy87-eventemitter's module system compatibility features to create a notification system that works across different JavaScript environments (CommonJS and browser globals).",
"type": "weighted_checklist",
"checklist": [
{
"name": "EventEmitter import/require",
"description": "Correctly imports or requires the EventEmitter class from wolfy87-eventemitter package using the appropriate module system syntax.",
"max_score": 15
},
{
"name": "CommonJS export pattern",
"description": "Properly exports the notifier using CommonJS module.exports pattern to enable require() loading in Node.js environments.",
"max_score": 20
},
{
"name": "Browser global pattern",
"description": "Implements browser global exposure pattern that makes the notifier available as a global variable when loaded in browser environments.",
"max_score": 20
},
{
"name": "Environment detection",
"description": "Detects the runtime environment (CommonJS vs browser) and applies the appropriate module system pattern, ensuring the code works universally.",
"max_score": 15
},
{
"name": "EventEmitter inheritance",
"description": "Extends or properly instantiates EventEmitter from wolfy87-eventemitter to provide event emitting capabilities.",
"max_score": 15
},
{
"name": "Event emission usage",
"description": "Uses EventEmitter's emit() or emitEvent() method to send notifications to registered listeners.",
"max_score": 10
},
{
"name": "Listener registration usage",
"description": "Uses EventEmitter's on() or addListener() method to allow subscribing to notification events.",
"max_score": 5
}
]
}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