0.0.2 • Published 10 years ago

nanoemitter v0.0.2

Weekly downloads
19
License
BSD
Repository
github
Last release
10 years ago

Nanoemitter

browser support

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.