Simple EventEmitter

emit and receive events!

ของเมื่อวันที่ 21-06-2021 ดู เวอร์ชันล่าสุด

สคริปต์นี้ไม่ควรถูกติดตั้งโดยตรง มันเป็นคลังสำหรับสคริปต์อื่น ๆ เพื่อบรรจุด้วยคำสั่งเมทา // @require https://update.greasyfork.org/scripts/426233/942855/Simple%20EventEmitter.js

ผู้เขียน
Nuro#9818
เวอร์ชัน
0.0.1.20210621181155
สร้างเมื่อ
09-05-2021
อัปเดตเมื่อ
21-06-2021
Size
325 ไบต์
สัญญาอนุญาต
ไม่มี

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