This package distributes the Protocol Buffers compiler protoc along with the
plugin for generating client and service objects for use with the Node gRPC
libraries.
This library exports the grpc_tools_node_protoc executable, which accepts all
of the same arguments as protoc itself. For use with Node, you most likely
want to use CommonJS-style imports. An example of generating code this way can
be found in this guide.
The grpc_tools_node_protoc automatically includes the Node gRPC plugin, so
it also accepts the --grpc_out=[option:]path argument. The option can be
one of the following:
grpc_js: Generates code withrequire('@grpc/grpc-js')instead ofrequire('grpc')generate_package_definition: Generates code that does notrequireany gRPC library, and instead generatesPackageDefinitionobjects that can be passed to theloadPackageDefinitionfunction provided by both thegrpcand@grpc/grpc-jslibraries.omit_serialize_instanceof: Omit theinstanceofcheck for messages in client code. This is useful when the message was renamed or is from a different package, and serialization would fail withExpected argument of type ….