UNPKG

litt

Version:

The smallest event emitter in the world.

23 lines (16 loc) 982 B
<p align="center"> <img src="https://i.imgur.com/oMec7S1.gif" alt="litt"> <br> <b>litt</b>: tiniest 121b javascript event emitter / pubsub in the world. <br> </p> ## Why Litt? - **Sub-atomic:** weighs 121 bytes gzipped - **Useful:** Is nearly 2x smaller than [mitt](https://github.com/developit/mitt)! - **Familiar:** same names & ideas as [Node's EventEmitter](https://nodejs.org/api/events.html#events_class_eventemitter) - **Functional:** methods don't rely on `this` - **Great Name:** This pubsub event emitter is *lit*t af. Because L comes before M so not just its filesize is smaller, but also its name's ordinality. - **Reproducible:** ```gzip -9 -n index.js && ls -l index.js.gz``` > Litt was made for all ES6 JavaScript platforms. ## **Even though Litt works fine IT'S A JOKE guys. Please don't use this for production. Or probably anything.** ### Yes I will accept pull requests to make it smaller...All that's left to do is change function names really...