https://github.com/qubitproducts/event-kitten
An event emitter inspired by event-kit, written in JavaScript
https://github.com/qubitproducts/event-kitten
ceh implement
Last synced: 10 months ago
JSON representation
An event emitter inspired by event-kit, written in JavaScript
- Host: GitHub
- URL: https://github.com/qubitproducts/event-kitten
- Owner: QubitProducts
- Created: 2015-03-27T22:11:37.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-09-25T11:16:27.000Z (over 10 years ago)
- Last Synced: 2024-04-25T13:01:51.843Z (about 2 years ago)
- Topics: ceh, implement
- Language: JavaScript
- Size: 168 KB
- Stars: 5
- Watchers: 9
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Event Kitten
------------
[](https://github.com/feross/standard)
An event emitter inspired by [event-kit](https://github.com/atom/event-kit), written in JavaScript. Meow.
### Motivation
[event-kit](https://github.com/atom/event-kit) is pretty awesome however it is written in coffeescript :disappointed: and uses [Grim](https://github.com/atom/grim) which is a >1MB dependency!
### API
```javascript
var createEmitter = require('event-kitten')
var emitter = createEmitter()
var sub = emitter.on('foo', function () {
console.log('bar')
})
// logs 'bar'
emitter.emit('foo')
// remove the observer
sub.dispose()
```