
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
grpc-getting-started
Advanced tools
Demonstration of the use of gRPC and front-end.
$ cd /{your_directory}/grpc-getting-started
$ npm i grpc-web
$ PROTOC_ZIP=protoc-22.2-osx-x86_64.zip
$ curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v22.2/$PROTOC_ZIP
$ sudo unzip -o $PROTOC_ZIP -d /usr/local bin/protoc
$ sudo unzip -o $PROTOC_ZIP -d /usr/local 'include/*'
$ rm -f $PROTOC_ZIP
You can also use the following command to install (macOS):
$ brew install protobuf
Check the version after the installation is complete
$ protoc --version
$ sudo npm i -g protoc-gen-js
Run the following command to compile the .proto
file and generate a .js
file we can recognize.
You can download protobuf-javascript to test
Or create your own files
proto/example.proto
:
syntax = "proto3";
package hello;
// Greeting represents a message you can tell a user.
message Greeting {
string message = 1;
}
The way to compile it:
$ mkdir hello
$ protoc --proto_path=./proto --js_out=import_style=commonjs,binary:hello proto/example.proto
or
$ npm run build
It will generate a file hello/example_pb.js
Licensed under the MIT.
FAQs
Demonstration of the use of gRPC and front-end
The npm package grpc-getting-started receives a total of 3 weekly downloads. As such, grpc-getting-started popularity was classified as not popular.
We found that grpc-getting-started demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.