Socket
Socket
Sign inDemoInstall

@protobuf-ts/plugin

Package Overview
Dependencies
5
Maintainers
1
Versions
95
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @protobuf-ts/plugin

The protocol buffer compiler plugin "protobuf-ts" generates TypeScript, gRPC-web, Twirp, and more.


Version published
Weekly downloads
134K
decreased by-1.46%
Maintainers
1
Install size
54.0 MB
Created
Weekly downloads
 

Readme

Source

@protobuf-ts/plugin

The protocol buffer compiler plugin for TypeScript: protobuf-ts

Installation:

# with npm:
npm install -D @protobuf-ts/plugin

# with yarn:
yarn add --dev @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.

Keywords

FAQs

Last updated on 13 Mar 2024

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc