Generate d.ts files for JSON objects from protobuf specs
Project description
# json-ts-protobuf: Generate Typescript declaration files for JSON objects from protobuf specs
## Requirements protoc 3.0.0 or greater python 3.5 Other configurations may work.
## Python Implementation There is currently only a python implementation of the plugin
The plugin can be installed with
pip install json-ts-protobuf
On posix, ensure that the protoc-gen-json-ts script installed onto your $PATH. Then run.
protoc –json-ts_out=output/location
Alternately, you can explicitly provide the path:
protoc –plugin=protoc-gen-json-ts=path/to/protoc-gen-json-ts –json-ts_out=output/location
To suppress output, you can run
protoc –json-ts_out=quiet:output/location
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for typescript-protobuf-0.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72df01eaf3e2413fbc8752cd01f7ece6899f8c6737d759c621abe479155e847b |
|
MD5 | 5c24165131bc4c44ea4cb5d003f90ac6 |
|
BLAKE2b-256 | aed6334536e65f70b77939ce8ecbc4c6d65e620e32c3514337c9e1da77ae33c1 |