evie

EventEmitter-style events with event-bubbling

Usage no npm install needed!

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

README

Evie

Evie provides an EventEmtter-style interface, but provides support for event-bubbling, wild-card events, object-literal handler specs, and doesn't require a handler for an error event.

Evie = require "evie"

count = 0
parent = Evie.create()
parent.on bam: -> count++

child = Evie.create()
child.forward parent

child.emit "bam"
child.emit "*"

assert count == 2