protoc-gen-grpc-web

Protoc plugin that generates gRPC-Web client code from proto files

brewmacoslinux
Try with needOr install directly
Source

About

Protoc plugin that generates code for gRPC-Web clients

Commands

protoc-gen-grpc-web

Examples

Generate gRPC-Web client code from a proto file$ protoc --plugin=protoc-gen-grpc-web --grpc-web_out=import_style=commonjs,mode=grpcwebtext:./src -I ./proto ./proto/service.proto
Generate TypeScript gRPC-Web client stubs$ protoc --plugin=protoc-gen-grpc-web --grpc-web_out=import_style=typescript,mode=grpcweb:./generated -I ./proto ./proto/service.proto
Generate gRPC-Web code with CommonJS modules for Node.js$ protoc --plugin=protoc-gen-grpc-web --grpc-web_out=import_style=commonjs,mode=grpcwebtext:./lib -I ./proto *.proto