proto-descriptor
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i proto-descriptor

Weekly Downloads

2

Version

0.0.4

License

MIT

Last publish

Collaborators

  • vkurchatkin