436a9631fc
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
8 lines
149 B
JavaScript
8 lines
149 B
JavaScript
'use strict';
|
|
|
|
module.exports = (from, to, events) => {
|
|
for (const event of events) {
|
|
from.on(event, (...args) => to.emit(event, ...args));
|
|
}
|
|
};
|