bare-events
TypeScript icon, indicating that this package has built-in type declarations

2.5.4 • 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

10,984,345

Version

2.5.4

License

Apache-2.0

Unpacked Size

22.7 kB

Total Files

6

Last publish

Collaborators

  • mafintosh
  • kasperisager