0.1.1 • Published 7 years ago

remote-vm v0.1.1

Weekly downloads
5
License
ISC
Repository
github
Last release
7 years ago

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();