JSPM

  • Created
  • Published
  • Downloads 20760583
  • Score
    100M100P100Q213482F
  • License Apache-2.0

Protocol Buffers for JavaScript. Finally.

Package Exports

  • protobufjs
  • protobufjs/cli/pbjs
  • protobufjs/cli/pbjs/sources/proto
  • protobufjs/cli/pbjs/targets/commonjs
  • protobufjs/cli/pbjs/targets/json
  • protobufjs/cli/pbjs/util
  • protobufjs/dist/ProtoBuf
  • protobufjs/dist/ProtoBuf.js
  • protobufjs/index

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 (protobufjs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

ProtoBuf.js - Protocol Buffers for JavaScript. Finally.

Protocol Buffers are a language-neutral, platform-neutral, extensible way of serializing structured data for use in communications protocols, data storage, and more, originally designed at Google (see).

ProtoBuf.js is a pure JavaScript implementation on top of ByteBuffer.js including a .proto parser, message class building and simple encoding and decoding. There is no compilation step required, it's super easy to use and it works out of the box on .proto files!

Build Status Donate

Getting started

Features

  • RequireJS/AMD compatible
  • node.js/CommonJS compatible, also available via npm
  • Browser compatible
  • Closure Compiler compatible (fully annotated, externs)
  • Fully documented using jsdoc3
  • Well tested through test.js
  • ByteBuffer.js is the only production dependency
  • Fully compatible to the official implementation including advanced features
  • proto2js command line utility

Documentation

Tests

Downloads

CDN usage

<script src="//cdn.rawgit.com/dcodeIO/ProtoBuf.js/VERSION/dist/ProtoBuf.js"></script>

With VERSION replaced by a valid tag or just master for testing the latest master build.

Contributors

Daniel Wirtz (maintainer), Frank Xu, Dretch, shirmin, Nikolai Vavilov

License: Apache License, Version 2.0 - Logo derived from W3C HTML5 Logos (CC A 3.0)