This package has been deprecated

Author message:

please use pogo-protos from now on

node-pogo-protos-vnext
TypeScript icon, indicating that this package has built-in type declarations

2.31.0 • Public • Published

node-pogo-protos

Uses protobuf.js to compile the Protobuf files from POGOProtos into an easy to use Node module.

npm version npm downloads dependencies license build

How to use

const POGOProtos = require('node-pogo-protos-vnext');
 
var myMessage = POGOProtos.Networking.Requests.Messages.RecycleInventoryItemMessage.fromObject({
  item_id: POGOProtos.Inventory.Item.ItemId.ITEM_POTION,
  count: 50
});
 
var encoded = POGOProtos.Networking.Requests.Messages.RecycleInventoryItemMessage.encode(myMessage).finish();
 
var decodedAgain = POGOProtos.Networking.Requests.Messages.RecycleInventoryItemMessage.decode(encoded);
console.log(decodedAgain.count); // will print 50

For more details see the protobuf.js documentation.

Usage with TypeScript

TypeScript definitions are included. Modern IDE should use them automatically.

Package Sidebar

Install

npm i node-pogo-protos-vnext

Weekly Downloads

11

Version

2.31.0

License

MIT

Unpacked Size

12.8 MB

Total Files

792

Last publish

Collaborators

  • niico