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
- Host: GitHub
- URL: https://github.com/uetchy/protobuffet
- Owner: uetchy
- Created: 2021-11-09T08:18:34.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-11T14:03:15.000Z (over 4 years ago)
- Last Synced: 2025-03-29T11:34:41.701Z (about 1 year ago)
- Topics: protobuf, protocol-buffers
- Language: TypeScript
- Homepage:
- Size: 68.4 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# 🍽 protobuffet
[](https://npmjs.org/package/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)):
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!