Greasy Fork is available in English.
emit and receive events!
当前为
此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.greasyfork.icu/scripts/426233/942855/Simple%20EventEmitter.js
Example usage:
var EventEmitter = require('events')
var e = new EventEmitter()
e.on('message', function (text) {
console.log(text)
})
e.emit('message', 'hello world')
If you have any questions, here's my Discord:
Stew#4055