diff --git a/README.md b/README.md index a68f4f8..046e371 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,19 @@

-

🍀 Irish PubSub - 133b pubsub system

+

🍀 Irish PubSub - 97b pubsub system


- gzip size install size + + gzip size + + + brotli size + + + install size +

-Modern (es6) functional Pubsub system (no `class`, or `this`), weights about 133b minified + gzipped. +Modern (es6) functional Pubsub system (no `class`, or `this`), weights about 97b minified + gzipped.

Install

@@ -22,8 +30,9 @@ import pubsub from 'irish-pub-sub' const [subscribe, send] = pubsub() -const unsbuscribe = subscribe('The Dreadnoughts', (val) => console.log('The Dreadnoughts: ', val)) // returns unsubscribe method +const unsubscribe = subscribe('The Dreadnoughts', (val) => console.log('The Dreadnoughts: ', val)) // returns unsubscribe method send('Dreadnoughts', 'Best band ever') // => The Dreadnoughts: Best band ever +unsubscribe() // => true ``` _Inspired by [developit/mitt](https://github.com/developit/mitt)_