2.1.1 • Published 2 years ago

uvm v2.1.1

Weekly downloads
287,127
License
Apache-2.0
Repository
github
Last release
2 years ago

UVM Build Status codecov

Module that exposes an event emitter to send data across contexts (VM 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');
2.1.1

2 years ago

2.1.0

2 years ago

2.0.2

3 years ago

2.0.1

4 years ago

2.0.0

4 years ago

2.0.0-beta.1

4 years ago

1.8.0-beta.1

4 years ago

1.7.9

4 years ago

1.7.8

5 years ago

1.7.7

5 years ago

1.7.6

5 years ago

1.7.5

5 years ago

1.7.4

6 years ago

1.7.3

6 years ago

1.7.2

6 years ago

1.7.1

6 years ago

1.7.0

7 years ago

1.6.1-beta.1

7 years ago

1.6.0

7 years ago

1.5.1

7 years ago

1.5.0

7 years ago

1.4.0

7 years ago

1.3.0

7 years ago

1.3.0-beta.1

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago

0.0.0

7 years ago