Provides OSX binaries for common gRPC protoc compiler plugins needed to generate gRPC client/server code for Node.js (JavaScript/TypeScript), Swift, Java (Android) and Java lite. Current version 0.0.4 includes protoc v3.6.0, grpc_node_plugin v1.6.6, protoc-gen-grpc-java v1.13.1, protoc-gen-swiftgrpc v0.4.3, and protoc-gen-ts. Only OSX binaries are available; contributions for Linux/Windows are welcome. This package simplifies setup by bundling all plugins in one dependency, but note the binaries are outdated and the package has not been updated since 2018.
npm install grpc-pluginsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates running protoc with grpc_node_plugin to generate gRPC stubs for Node.js.
Use latest versions from official sources: https://github.com/protocolbuffers/protobuf/releases, https://www.npmjs.com/package/grpc-tools
Install native binaries for your platform manually or use package like 'protoc' and 'grpc-tools'.
Use '@grpc/grpc-js' package and update generated code accordingly.
Download latest protoc from https://github.com/protocolbuffers/protobuf/releases
Verify binary file exists in node_modules/grpc-plugins/osx after install.
npm install @grpc/grpc-js and replace imports from 'grpc' to '@grpc/grpc-js'
Use native Linux binaries; this package only supports OSX.
Check that binPath is correct and run chmod +x on the plugin file.