merapi-console-proxy
v0.2.0
Published
Merapi Console Proxy
Downloads
5
Readme
Merapi Console Proxy
Merapi Console Proxy (or MCP) kinda like the CLI for Merapi service.
How do I use this?
npm install -g merapi-console-proxy
Install as a global function to use the console.
npm install merapi-console-proxy
You are also able to use merapi-console-proxy using require
function.
Using merapi-console-proxy as global function
merapi-console-proxy --host [HOST] --secret [SECRET]
Using merapi-console-proxy as require function
proxy([HOST], [SECRET])
e.g.
let proxy = require("@yesboss/merapi-console-proxy");
// connect service using proxy
let serviceA = proxy('http://localhost:5000');
// now you are able to call the function that are listed
serviceA.functionA();