npm install avoscloud-rmi
var rmi = require('avoscloud-rmi');
// use development environment
rmi.setMode('development');
rmi.invoke('hello', null, {
success : function(result) {
console.log(result);
},
error : function(e) {
console.error(e.stack || e.message);
},
});
See here