event-emitter 1.0.1
Install from the command line:
Learn more about npm packages
$ npm install @meese-os/event-emitter@1.0.1
Install via package.json:
"@meese-os/event-emitter": "1.0.1"
About this version
This is a EventEmitter implementation for MeeseOS.
on("event-name", () => {}); // Fired every time event is emitted
once("event-name", () => {}); // Fires only once and is forgotten
off("event-name", () => {}); // Removes listener
off("event-name"); // Removes all listeners of this type
off(); // Removes all listeners
on("event-name", () => {}, { persist: true }); // Will not be removed unless forced
off("event-name", () => {}, true); // Force removal
Details
- event-emitter
- meese-os
- over 1 year ago
- BSD-2-Clause
- 11 dependencies
Assets
- event-emitter-1.0.1.tgz
Download activity
- Total downloads 0
- Last 30 days 0
- Last week 0
- Today 0