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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.4
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.4
    0
  • 0.0.3
    1
  • 0.0.2
    1
  • 0.0.1
    1

Package Sidebar

Install

npm i proto-descriptor

Weekly Downloads

3

Version

0.0.4

License

MIT

Last publish

Collaborators

  • vkurchatkin