JSPM

  • Created
  • Published
  • Downloads 2538479
  • Score
    100M100P100Q195522F
  • License BSD

a protocol buffer implementation in javascript

Package Exports

  • pbf

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pbf) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

pbf

build status Coverage Status

A protocol buffers implementation in JavaScript for node and browsers.

install

npm install pbf

api

Protobuf(buf, pos)

var Pbf = require('pbf');
var protobuffer = new Pbf(buffer);
var varInt = protobuffer.readVarInt();

Reading

  • readUInt32
  • readUInt32LE
  • readUInt64
  • readUInt64LE
  • readDouble
  • readDoubleLE
  • readVarint
  • readSVarint
  • readString
  • readPacked