evie

1.0.0-alpha-02 • Public • Published

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

/evie/

    Package Sidebar

    Install

    npm i evie

    Weekly Downloads

    9

    Version

    1.0.0-alpha-02

    License

    MIT

    Last publish

    Collaborators

    • automatthew
    • dyoder