Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

bare-events

holepunchto43.8mApache-2.02.5.4TypeScript support: included

Event emitters for JavaScript

readme

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