diff --git a/Readme.md b/Readme.md index 2118be0..8f5ffd6 100644 --- a/Readme.md +++ b/Readme.md @@ -9,6 +9,18 @@ $ component install component/emitter ``` ## API + +### Emitter(obj) + + The `Emitter` may also be used as a mixin. For example + a "plain" object may become an emitter, or you may + extend an existing prototype: + +```js +var obj = {}; +Emitter(obj); +Emitter(User.prototype); +``` ### Emitter#on(event, fn)