Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

mstade/anropa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

anropa

Turn any object into an event dispatcher.

Usage

var source = { toString: function() { return 'Emitter' } }
  , emit   = require('anropa').mixin(source).emit

source.on('data', function(msg) {
  console.log(this   ' says '   msg)
})

emit('data', 'hello, world!')

Status

Build Status Coverage Status

About

Turn any object into an event dispatcher.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published