holepunchto / bare-events

Event emitters for JavaScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bare-events

Event emitters for JavaScript.

npm install bare-events

Usage

const EventEmitter = require('bare-events')

const e = new EventEmitter()

e.on('hello', function (data) {
  console.log(data)
})

e.emit('hello', 'world')

License

Apache-2.0

About

Event emitters for JavaScript

License:Apache License 2.0


Languages

Language:JavaScript 100.0%