@tomyjwu/calc-grpc

1.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @tomyjwu/calc-grpc

Weekly Downloads

0

Version

1.0.0

License

Apache-2.0

Unpacked Size

14.8 kB

Total Files

6

Last publish

Collaborators

  • tomyjwu