1.0.4 • Published 4 years ago

@bastienrobert/events v1.0.4

Weekly downloads
31
License
MIT
Repository
github
Last release
4 years ago

Install

npm install @bastienrobert/events

Usage

import EventEmitter from '@bastienrobert/events'

const eventEmitter = new EventEmitter()
eventEmitter.on('foo', bar => {
  console.log(bar)
})
eventEmitter.emit('foo', 'here we go!')

API

See the Documentation. You can check the Node.js EventEmitter docs too, most methods are implemented in this package.

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

5 years ago