{"repo":"improbable-eng/ts-protoc-gen","free":true,"listed":false,"github":"https://github.com/improbable-eng/ts-protoc-gen","clone":"git clone https://github.com/improbable-eng/ts-protoc-gen.git","description":"Protocol Buffers Compiler (protoc) plugin for TypeScript and gRPC-Web.","language":"TypeScript","stars":1395,"topics":["protocol-buffers","protoc","plugin","typescript","ts","grpc-web","grpc"],"license":"Apache-2.0","category":"networking-infra","readme_excerpt":"ts-protoc-gen Protoc Plugin for generating TypeScript Declarations This repository contains a protoc plugin that generates TypeScript declarations ( .d.ts files) that match the JavaScript output of protoc --js out=import style=commonjs,binary . This plugin can also output service definitions as both .js and .d.ts files in the structure required by grpc-web, and as .d.ts files in the structure required by grpc-node. This plugin is tested and written using TypeScript 2.7. Installation npm As a prerequisite, download or install protoc (the protocol buffer compiler) for your platform from the github releases page or via a package manager (ie: brew, apt). For the latest stable version of the ts-protoc-gen plugin: For our latest build straight from master: bazel The bazel rules have been moved to a separate project here. There is a migration guide for existing users. Contributing Contributions are welcome! Please refer to CONTRIBUTING.md for more information. Usage As mentioned above, this plugin for protoc serves two purposes: 1. Generating TypeScript Definitions for CommonJS modules generated by protoc 2. Generating gRPC service clients for use with grpc-web or grpc-node. Generating TypeScript Definitions for CommonJS modules generated by protoc By default, protoc will generate ES5 code when the --js out flag is used (see javascript compiler documentation). You have the choice of two module syntaxes, CommonJS or closure. This plugin ( ts-protoc-gen ) can be used to generate Types","default_branch":null,"files":null,"tree":[],"storefront":"/r/improbable-eng","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/improbable-eng/ts-protoc-gen/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}