Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@tomyjwu/calc-grpc

tomyjwu6Apache-2.01.0.0

client lib to call sample calc grpc

grpc

readme

calc-grpc

This is base on https://github.com/grpc-ecosystem/grpc-cloud-run-example

This packaged calculate gRPC client as a library, to hide the grpc proto loading, connecting server, ...etc details

usage

const calculate = require('@tomyjwu/calc-grpc');
calculate(argv.server, argv.operation.toUpperCase(), argv.a, argv.b, argv.plaintext).then((value) => {
      console.log(value);
    }, (error) => {
      console.error(error);
    });