bare-events

2.2.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i bare-events

Weekly Downloads

3,884,142

Version

2.2.2

License

Apache-2.0

Unpacked Size

18.9 kB

Total Files

5

Last publish

Collaborators

  • mafintosh
  • kasperisager