tree: d38d5eacb5fb9d6839c37f9c692ee3125d7e4f0c [path history] [tgz]
  1. lib/
  2. global.d.ts
  3. global.js
  4. index.d.ts
  5. index.js
  6. LICENSE
  7. package.json
  8. README.md
  9. web.d.ts
  10. web.js
node_modules/bare-events/README.md

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