An open API service indexing awesome lists of open source software.

https://github.com/uetchy/protobuffet

🍽 Fast, isomorphic, zero-dependency Protocol Buffers binary message parser and assembler
https://github.com/uetchy/protobuffet

protobuf protocol-buffers

Last synced: about 1 year ago
JSON representation

🍽 Fast, isomorphic, zero-dependency Protocol Buffers binary message parser and assembler

Awesome Lists containing this project

README

          

# 🍽 protobuffet

[![npm](https://badgen.net/npm/v/protobuffet)](https://npmjs.org/package/protobuffet)
[![npm: total downloads](https://badgen.net/npm/dt/protobuffet)](https://npmjs.org/package/protobuffet)

Fast, zero-dependency [Protocol Buffers](https://developers.google.com/protocol-buffers/) binary message parser and assembler.

## Usage

### Parse

```js
import { parsePb } from "protobuffet";

const parsed = parsePb(uint8Array);
```

### Construct

```js
import { ld, vt, concatu8 as cc } from "protobuffet";

const binMsg = cc(ld(0, "hello"), vt(1, 1000));
```

## Contributors ✨

Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):



uetchy

💻

Jan Procházka

💻

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!