nanoemitter
v0.0.2
Published
Tiny event emitter
Downloads
46
Maintainers
Readme
Nanoemitter
Nanoemitter is a tiny event emitter.
1330 B nanoemitter.min.js // minified
532 B nanoemitter.min.js.gz // minified+gzipped
Install
Nanoemitter is available on npm.
npm install nanoemitter
Use
var emitter = require('nanoemitter')()
emitter
.on('tarantism', function() { console.log('\_O_\') })
.on('tarantism', function() { console.log('/_O_/') })
emitter.trigger('tarantism')
Docs
For full documentation see the spec.
Changelog
0.0.2
Only accepting functions.
0.0.1
Initial release. YaY!
enjoy.