All Projects → maroun-baydoun → Evented

maroun-baydoun / Evented

Licence: mit
Fire and listen to events in JavaScript

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects

Labels

Projects that are alternatives of or similar to Evented

Kubernetes Event Exporter
Export Kubernetes events to multiple destinations with routing and filtering
Stars: ✭ 395 (+6483.33%)
Mutual labels:  events
Lwt
OCaml promises and concurrent I/O
Stars: ✭ 505 (+8316.67%)
Mutual labels:  events
Laravel Event Projector
Event sourcing for Artisans 📽
Stars: ✭ 650 (+10733.33%)
Mutual labels:  events
Jquery Bracket
jQuery Bracket library for organizing single and double elimination tournaments
Stars: ✭ 427 (+7016.67%)
Mutual labels:  events
Cms
Decoupled CMS for any Laravel app, gain control of: pages, blogs, galleries, events, images, custom modules and more.
Stars: ✭ 498 (+8200%)
Mutual labels:  events
Transient
A full stack, reactive architecture for general purpose programming. Algebraic and monadically composable primitives for concurrency, parallelism, event handling, transactions, multithreading, Web, and distributed computing with complete de-inversion of control (No callbacks, no blocking, pure state)
Stars: ✭ 617 (+10183.33%)
Mutual labels:  events
Awesome4girls
A curated list of inclusive events/projects/initiatives for women in the tech area. 💝
Stars: ✭ 393 (+6450%)
Mutual labels:  events
Laravel Google Calendar
Manage events on a Google Calendar
Stars: ✭ 787 (+13016.67%)
Mutual labels:  events
Kledex
.NET Standard framework to create simple and clean design. Advanced features for DDD, CQRS and Event Sourcing.
Stars: ✭ 502 (+8266.67%)
Mutual labels:  events
Osem
Open Source Event Manager. An event management tool tailored to Free and Open Source Software conferences.
Stars: ✭ 649 (+10716.67%)
Mutual labels:  events
All Things Cqrs
Comprehensive guide to a couple of possible ways of synchronizing two states with Spring tools. Synchronization is shown by separating command and queries in a simple CQRS application.
Stars: ✭ 474 (+7800%)
Mutual labels:  events
Backbone.radio
Messaging patterns for Backbone applications.
Stars: ✭ 496 (+8166.67%)
Mutual labels:  events
Vue Global Events
⌨️ Register global events as a component
Stars: ✭ 638 (+10533.33%)
Mutual labels:  events
Riemann
A network event stream processing system, in Clojure.
Stars: ✭ 4,099 (+68216.67%)
Mutual labels:  events
Eventrouter
A simple introspective kubernetes service that forwards events to a specified sink.
Stars: ✭ 671 (+11083.33%)
Mutual labels:  events
Calendar
Календарь событий по фронтенду
Stars: ✭ 395 (+6483.33%)
Mutual labels:  events
Twitchlib
C# Twitch Chat, Whisper, API and PubSub Library. Allows for chatting, whispering, stream event subscription and channel/account modification. Supports .NET Core 2.0
Stars: ✭ 519 (+8550%)
Mutual labels:  events
Laravel Event Broadcast
Laravel event broadcasting with Node.js, Redis & Socket.io
Stars: ✭ 5 (-16.67%)
Mutual labels:  events
Domtastic
Small, fast, and modular DOM and event library for modern browsers.
Stars: ✭ 763 (+12616.67%)
Mutual labels:  events
Telemetry
Dynamic dispatching library for metrics and instrumentations.
Stars: ✭ 647 (+10683.33%)
Mutual labels:  events

Evented

npm version

Fire and listen to events in JavaScript

Basic usage

On an Evented class instance
obj.fire(eventName, eventArgs, eventTarget);
obj.on(eventName, listener);
obj.off(eventName, listener);
obj.listensTo(eventName);
obj.listeners(eventName);
Statically
Evented.fire(eventName, eventArgs, eventTarget);
Evented.on(eventName, listener);
Evented.off(eventName, listener);
Evented.listensTo(eventName);
Evented.listeners(eventName);

Usage example

class User extends Evented {
  ...
}

let user = new User();

user.on("loggedIn", (e) => {
  //Do something on user login
});

//Fire the event after authentication
user.fire("loggedIn");

Evented.on("userLoggedOut", (e) => {
  //Do something on user logout
});

//Fire the event after user logout
Evented.fire("userLoggedOut");
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].