0.4.2 • Published 4 years ago

worker-events v0.4.2

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

Proxy Events in browser or worker

Usage

In worker

import workerEvents from 'worker-events'
workerEvents.emit('bar', 2)
workerEvents.emit('sth', 3)
workerEvents.on('sth', res => console.log(res))
// >> 3

In browser

import workerEvents from 'worker-events'
workerEvents.on('foo', res => console.log(res))
workerEvents.on('bar', res => console.log(res))
workerEvents.emit('foo', 1)
// >> 1
// >> 2
0.4.2

4 years ago

0.4.1

5 years ago

0.4.0

5 years ago

0.3.0

6 years ago

0.2.1

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago