github-protobuf
v1.0.6
Published
node library for github api events in protobuf format
Downloads
7
Readme
Node Bindings for Github API protobuf
This project contains the Node.JS bindings for the protobuf definition files for entities and events in the Github API. This bindings generated from the jhaynie/github-protobuf project.
Install
npm install github-protobuf
or with Yarn
yarn add github-protobuf
Usage
var User = require('github-protobuf').User;
var u = new User();
u.setLogin('jhaynie');
// dump as JS object
console.log(u.toObject());
// serialize
var b = u.serializeBinary();
// deserialize
var b2 = User.deserializeBinary(b);
License
Licensed under the MIT License.