sivent

Simple generic event realization

Usage no npm install needed!

<script type="module">
  import sivent from 'https://cdn.skypack.dev/sivent';
</script>

README

Simple event

Fires all listeners, subscribed on emitter object.

Usage example

let sivent = new Sivent<string, number>();

sivent.add((sender, data) => {
    console.log(sender, data);
})

sivent.invoke("hi there, ", 123);