4.0.0 • Published 9 months ago

uvm v4.0.0

Weekly downloads
287,127
License
Apache-2.0
Repository
github
Last release
9 months ago

UVM CI codecov

Module that exposes an event emitter to send data across contexts (Worker threads in Node.js and Web Workers in browser).

Installation

UVM can be installed using NPM or directly from the git repository within your NodeJS projects. If installing from NPM, the following command installs the module and saves in your package.json

$ npm install uvm --save

Usage

let uvm = require('uvm'),
    context;

context = uvm.spawn({
    bootCode: `
        bridge.on('loopback', function (data) {
            bridge.dispatch('loopback', data + ' World!');
        });
    `
});

context.on('loopback', function (data) {
    console.log(data); // Hello World!
});

context.dispatch('loopback', 'Hello');
4.0.0

9 months ago

3.0.0-beta.1

1 year ago

3.0.0

1 year ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.2

4 years ago

2.0.1

5 years ago

2.0.0

5 years ago

2.0.0-beta.1

5 years ago

1.8.0-beta.1

5 years ago

1.7.9

5 years ago

1.7.8

6 years ago

1.7.7

6 years ago

1.7.6

6 years ago

1.7.5

6 years ago

1.7.4

7 years ago

1.7.3

7 years ago

1.7.2

7 years ago

1.7.1

7 years ago

1.7.0

8 years ago

1.6.1-beta.1

8 years ago

1.6.0

8 years ago

1.5.1

8 years ago

1.5.0

8 years ago

1.4.0

8 years ago

1.3.0

8 years ago

1.3.0-beta.1

8 years ago

1.2.0

9 years ago

1.1.0

9 years ago

1.0.0

9 years ago

0.0.0

9 years ago