@pqstudio/protobuf_ts_plugin

2.0.23 • Public • Published

@pqstudio/protobuf_ts_plugin

The protocol buffer compiler plugin for TypeScript: protobuf-ts

Installation:

# with npm:
npm install -D @pqstudio/protobuf_ts_plugin

# with yarn:
yarn add --dev @pqstudio/protobuf_ts_plugin

This will install the plugin as a development dependency.

Basic usage:

npx protoc --ts_out . --proto_path protos protos/my.proto 

With some options:

npx protoc \ 
  --ts_out . \
  --ts_opt long_type_string \
  --ts_opt optimize_code_size \
  --proto_path protos \
  protos/my.proto 

protoc is the protocol buffer compiler. protobuf-ts installs it automatically.

Plugin parameters are documented in the MANUAL.
For a quick overview of protobuf-ts, check the repository README.

Package Sidebar

Install

npm i @pqstudio/protobuf_ts_plugin

Weekly Downloads

0

Version

2.0.23

License

Apache-2.0

Unpacked Size

364 kB

Total Files

62

Last publish

Collaborators

  • pqstudio