Update docs.
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Jason Miller · committed by Jason Miller · parent d63b350 · Browse files · 2 files·+23 added−19 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+23 added−19 removed
- other:+23 added−19 removed
Provenance
- Commit
07f8819- Tree
a0dd4f6- Author
Jason Miller <jason@developit.ca>- Committer
Jason Miller <jason@developit.ca>- Parent
d63b350
2 files changed+23 added−19 removed
modified:package.json+1 added-1 removed
123455678966 unmodified lines{ "name": "mitt", "amdName": "mitt", "version": "1.0.1", "description": "Tiny ~200b functional event emitter / pubsub.", "description": "Tiny 200b functional Event Emitter / pubsub.", "jsnext:main": "src/index.js", "main": "dist/mitt.js", "umd:main": "dist/mitt.umd.js", "scripts": {66 unmodified linesmodified:README.md+22 added-18 removed
15 unmodified lines16 17 Mitt was made for the browser, but works in any JavaScript runtime. It has no dependencies and supports IE9+.18 19 ## Table of Contents20-- [Install](#install)21-- [Usage](#usage)22-- [Examples & Demos](#examples--demos)23-- [API](#api)24-- [Contribute](#contribute)25-- [License](#license)20 21+- [Install](#install)22+- [Usage](#usage)23+- [Examples & Demos](#examples--demos)24+- [API](#api)25+- [Contribute](#contribute)26+- [License](#license)27+28 ## Install29 30 This project uses [node](http://nodejs.org) and [npm](https://npmjs.com). Go check them out if you don't have them locally installed.31 15 unmodified lines47 48 ```html49 <script src="https://unpkg.com/mitt/dist/mitt.umd.js"></script>50 ```51+52 You can find the library on `window.mitt`.53 54 ## Usage55 38 unmodified lines94 ### mitt95 96 Mitt: Tiny (~200b) functional event emitter / pubsub.97 96-Returns **Mitt**98+Returns **Mitt** 99 100 #### emit101 102 Invoke all handlers for the given type.28 unmodified lines131 132 Returns **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)** the `mitt` instance for chaining133 134 ## Contribute135+136 First off, thanks for taking the time to contribute!137 Now, take a moment to be sure your contributions make sense to everyone else.138 139 ### Reporting Issues140+141 Found a problem? Want a new feature? First of all see if your issue or idea has [already been reported](../../issues).142 If don't, just open a [new clear and descriptive issue](../../issues/new).143 144 ### Submitting pull requests145+146 Pull requests are the greatest contributions, so be sure they are focused in scope, and do avoid unrelated commits.147 143-- Fork it!144-- Clone your fork: `git clone https://github.com/<your-username>/mitt`145-- Navigate to the newly cloned directory: `cd mitt`146-- Create a new branch for the new feature: `git checkout -b my-new-feature`147-- Install the tools necessary for development: `npm install`148-- Make your changes.149-- Commit your changes: `git commit -am 'Add some feature'`150-- Push to the branch: `git push origin my-new-feature`151-- Submit a pull request with full remarks documenting your changes.148+- Fork it!149+- Clone your fork: `git clone https://github.com/<your-username>/mitt`150+- Navigate to the newly cloned directory: `cd mitt`151+- Create a new branch for the new feature: `git checkout -b my-new-feature`152+- Install the tools necessary for development: `npm install`153+- Make your changes.154+- Commit your changes: `git commit -am 'Add some feature'`155+- Push to the branch: `git push origin my-new-feature`156+- Submit a pull request with full remarks documenting your changes.157 158 ## License159 155-[MIT License](LICENSE.md) © [Jason Miller](https://jasonformat.com/)156-160+[MIT License](LICENSE.md) © [Jason Miller](https://jasonformat.com/)