0.0.4 • Published 7 years ago

proto-descriptor v0.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
7 years ago

proto-descriptor

Utilites for converting protobuf descriptors (e.g. from GRPC reflection) to protobuf.js descriptors.

API

  • convertFileDescriptorSet(buffer: Uint8Array): Root - decode binary FileDescriptorSet into protobuf.js Root;
  • convertFileDescriptor(buffer: Uint8Array): Root - decode binary FileDescriptorProto into protobuf.js Root;
  • addFromFileDescriptorSet(root: Root, buffer: Uint8Array) - add definitions from binary FileDescriptorSet into existing protobuf.js Root;
  • addFromFileDescriptor(root: Root, buffer: Uint8Array) - add definitions from binary FileDescriptorProto into existing protobuf.js Root;
  • function resolveAll(root: Root) - resolve types and apply necessary postprocessing.
0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago