0.5.0 • Published 3 years ago

@llkennedy/protoc-gen-tsjson v0.5.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

protoc-gen-tsjson

Generate Typescript (and javascript) bindings for canonical JSON representation of proto messages, for when gRPC-web isn't doing it for you.

Primarily designed for use with httpgrpc but can be used on its own if you just want JSON proto message classes in your JS/TS project.

Pre-requisites

If you cannot obtain a pre-built binary (e.g. the releases section of this project, once it has some) you will require Go >= 1.16 to compile the protoc plugin.

Installing

go install github.com/LLKennedy/protoc-gen-tsjson

Alternatively, building the binary for your environment ahead of time and ensuring the result is on the path will also work. Protoc simply adds "protoc-gen" to any "plugin_out"-style options then attempts to execute "protoc-gen-plugin" blindly. Although Go was used to write this plugin, and is required to build the binary, it is not required for use with protoc, or for use with the output files.

Usage

protoc --proto_path=<paths> --tsjson_out=<output path> <proto files>
0.5.0-pre7

3 years ago

0.5.0

3 years ago

0.5.0-pre6

3 years ago

0.5.0-pre1

3 years ago

0.5.0-pre2

3 years ago

0.5.0-pre5

3 years ago

0.5.0-pre3

3 years ago

0.5.0-pre4

3 years ago

0.4.0-pre1

3 years ago

0.4.0-pre5

3 years ago

0.4.0

3 years ago

0.4.0-pre4

3 years ago

0.4.0-pre3

3 years ago

0.4.0-pre2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago