npm.io
0.1.1 • Published 9 years ago

remote-vm

Licence
ISC
Version
0.1.1
Deps
3
Vulns
1
Weekly
0

Use external blocks of code within a Node.js service. Allows for some of the logic to be centrally located.

  • Execute VM scripts fetched from a remote location, e.g. gist.
  • Support for private GitHub repositories.

Define a remote function using a URL.

var remoteMethod = vm.define( 'some-url-of-js' );

Execute remote function, passing in some new data.

remoteMethod.call({ myData: true });

Flush cached method.

remoteMethod.refresh();