Downloads latest Google Protocol Buffers Javascript generator binary wrapped as npm package
npm install protoc-gen-js-binaryDownloads Google Protocol Buffers Javascript generator binary wrapped as npm package.
By default, it will download the latest released version.
If a specific version is required, add "protoc-gen-js-binary": "x.x.x" at the root of your package.json.
npm i -D protoc-gen-js-binary
To force re-check for latest protoc-gen-js binary releases, simply run npm ci.
Alternatively, you can manually invoke the install script node node_modules/protoc-gen-js-binary/install.
If working in both Windows and WSL, you can invoke the install script to download binaries for both,
however when switching OS you should run npm ci.
Add --plugin=protoc-gen-js=node_modules/protoc-gen-js-binary/protoc-gen-js arg to protoc command
``shdownload protoc and protoc-gen-js binaries
npm install protoc-gen-js-binary protoc-binary
, output_dir and my.proto with actual valuesAlternatively, add the full path of
protoc-gen-js-binary to PATH
e.g. /home/user/node_modules/protoc-gen-js-binaryAPI
$3
`js
/ Returns the absolute path to local protoc-gen-js binary /
require("protoc-gen-js-binary").binary;
`$3
`js
/ Returns version of local protoc-gen-js binary /
require("protoc-gen-js-binary").version;
``See official protocolbuffers/protobuf-javascript download page.
* osx-x86_64.zip
* osx-aarch_64.zip
* linux-x86_32.zip
* linux-x86_64.zip
* linux-aarch_64.zip
* win32.zip
* win64.zip