1.0.4 • Published 5 years ago

@bastienrobert/events v1.0.4

Weekly downloads
31
License
MIT
Repository
github
Last release
5 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

5 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago