8000 GitHub - postmanlabs/uvm at feature/error-location
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

postmanlabs/uvm

 
 

Repository files navigation

uvm Build Status codecov

Module that exposes an event emitter to send data across contexts (vm in node and iframe in browser)

Usage

var uvm = require('uvm');

uvm.createHost({
    bootTimeout: 30 * 1000, // default 30s. set `undefined` for Infinity
    bootCode: `bridge.on('ping', function () {
        bridge.send('pong', Date.now())
    });`
}, function (err, bridge) {

    bridge.on('pong', console.log);
    bridge.send('ping');
});

About

Universal Virtual Machine for Node and Browser

Topics

Resources

License

Stars

Watchers

Forks

Contributors 16

0