proto-descriptor
v0.0.4
Published
Utilites for converting protobuf descriptors (e.g. from GRPC reflection) to [protobuf.js](https://www.npmjs.com/package/protobufjs) descriptors.
Downloads
5
Readme
proto-descriptor
Utilites for converting protobuf descriptors (e.g. from GRPC reflection) to protobuf.js descriptors.
API
convertFileDescriptorSet(buffer: Uint8Array): Root
- decode binary FileDescriptorSet intoprotobuf.js
Root;convertFileDescriptor(buffer: Uint8Array): Root
- decode binary FileDescriptorProto intoprotobuf.js
Root;addFromFileDescriptorSet(root: Root, buffer: Uint8Array)
- add definitions from binary FileDescriptorSet into existingprotobuf.js
Root;addFromFileDescriptor(root: Root, buffer: Uint8Array)
- add definitions from binary FileDescriptorProto into existingprotobuf.js
Root;function resolveAll(root: Root)
- resolve types and apply necessary postprocessing.