Merge pull request #2403 from pietrodn/patch-1

Replace invalid link in grpc-tools README
This commit is contained in:
Michael Lumish 2023-04-05 10:10:23 -07:00 committed by GitHub
commit 167732a93c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,7 @@ 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](https://developers.google.com/protocol-buffers/docs/reference/javascript-generated#commonjs-imports).
be found in [this guide](https://github.com/protocolbuffers/protobuf-javascript/blob/main/docs/index.md).
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:
@ -19,4 +19,4 @@ one of the following:
- `generate_package_definition`: Generates code that does not `require` any
gRPC library, and instead generates `PackageDefinition` objects that can
be passed to the `loadPackageDefinition` function provided by both the
`grpc` and `@grpc/grpc-js` libraries.
`grpc` and `@grpc/grpc-js` libraries.