Simple EventEmitter

emit and receive events!

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://update.greasyfork.org/scripts/426233/948861/Simple%20EventEmitter.js

Аўтар
Nuro#9818
Версія
0.0.1.20210709192810
Створаны
09.05.2021
Абноўлены
09.07.2021
Памер
869 байтаў
Ліцэнзія
Н/Д

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