@osjs/event-emitter
TypeScript icon, indicating that this package has built-in type declarations

1.0.10 • Public • Published

OS.js Logo

OS.js is an open-source web desktop platform with a window manager, application APIs, GUI toolkit, filesystem abstractions and much more.

Support Support Donate Donate

OS.js EventEmitter

This is a EventEmitter implementation for OS.js.

API

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

Contribution

Documentation

See the Official Manuals for articles, tutorials and guides.

Links

Readme

Keywords

Package Sidebar

Install

npm i @osjs/event-emitter

Weekly Downloads

59

Version

1.0.10

License

BSD-2-Clause

Unpacked Size

25.3 kB

Total Files

6

Last publish

Collaborators

  • andersevenrud