0.0.14 • Published 4 years ago

@protos/to-json v0.0.14

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

@protos/to-json

Command-line tool to parse and output a JSON format from .proto files that can be used with other @protos modules or by anyone who likes dealing with JSON rather than protocol buffer descriptors.

This module will crate a binary named protos-to-json that can be used to parse protocol buffers and create a JSON description. If your protos use any third party protos, you can reference them by their github URL and a base directory within the repo.

Example Usage

# Export all .proto files in /protos to STDOUT
protos-to-json \
  # Include protos from the grpc/grpc github repo starting at the base directory src/proto/grpc
  -i https://github.com/grpc/grpc.git:src/proto/grpc \
  # Include protos from the protocolbuffers/protobuf github repo starting at the base directory src/google
  -i https://github.com/protocolbuffers/protobuf.git:src/google \
  /protos

Related Modules

0.0.14

4 years ago

0.0.13

4 years ago

0.0.12

4 years ago

0.0.11

4 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago