This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

ioant-proto

0.1.1 • Public • Published

npm-package-proto

This package is used for loading proto files. It also contains some convenience functions for handling proto messages.

How to use

Load the module and set the path to the proto file

var Proto = require('ioant-proto');
Proto.setup("proto/messages.proto");

Get a proto message based on its corresponding message_type

// 1 is messag_type for BootInfo message
message = Proto.getProtoMessage(1);
message.reboot_reason = "I crashed";

Readme

Keywords

Package Sidebar

Install

npm i ioant-proto

Weekly Downloads

0

Version

0.1.1

License

MIT

Last publish

Collaborators

  • asaxen