Tools for developing with gRPC on Node.js
npm install grpc-toolsprotoc along with the
grpc_tools_node_protoc executable, which accepts all
protoc itself. For use with Node, you most likely
grpc_tools_node_protoc automatically includes the Node gRPC plugin, so
--grpc_out=[option:]path argument. The option can be
grpc_js: Generates code with require('@grpc/grpc-js') instead of
require('grpc')
generate_package_definition: Generates code that does not require any
PackageDefinition objects that can
loadPackageDefinition function provided by both the
grpc and @grpc/grpc-js libraries.
omit_serialize_instanceof: Omit the instanceof check for messages in
Expected argument of type ….