3.2.2 • Published 4 years ago
emitter-eventjs v3.2.2
A powerful Nodejs module that allows you to emit events and collect datz from them.
why you should use it?
- really easy and simple to use
- fast and reponsive
- 100% made with Javascript
How to use
install nodejs install the package using npm
$ npm install emitter-eventjs@latest
then:
var { EventEmitter } = require("emitter-eventjs");
var emitter = new EventEmitter();
ee.emit("message", { text: "hello" })
ee.on("message", (data) => {
console.log(data)
})