rabin ef108495d0 edit | 8 months ago | |
---|---|---|
.. | ||
lib | 8 months ago | |
LICENSE | 8 months ago | |
README.md | 8 months ago | |
index.js | 8 months ago | |
package.json | 8 months ago |
Event emitters for JavaScript.
npm install bare-events
const EventEmitter = require('bare-events')
const e = new EventEmitter()
e.on('hello', function (data) {
console.log(data)
})
e.emit('hello', 'world')
Apache-2.0