# it-protocol-buffers

> Protocol Buffers length-prefixed async-iterator encoder/decoder

Latest version **0.2.1** (published 2020-01-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install it-protocol-buffers
pnpm add it-protocol-buffers
yarn add it-protocol-buffers
bun add it-protocol-buffers
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2020-01-31 |
| First published | 2019-10-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Maciej Krüger |
| Maintainers | mkg20001 |
| Keywords | protocol-buffers, protocol, buffers, async-iterator, it, stream, length-prefixed, length, prefixed, encoder, decoder |

## Links

- npm: https://www.npmjs.com/package/it-protocol-buffers
- Repository: https://github.com/mkg20001/it-protocol-buffers
- Homepage: https://github.com/mkg20001/it-protocol-buffers#readme
- Issues: https://github.com/mkg20001/it-protocol-buffers/issues
- npm.io page: https://npm.io/package/it-protocol-buffers

## Dependencies (2)

- [it-buffer](https://npm.io/package/it-buffer.md) ^0.1.1
- [it-length-prefixed](https://npm.io/package/it-length-prefixed.md) ^3.0.0

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads
- [datasets-fi-postalcodes](https://npm.io/package/datasets-fi-postalcodes.md) — 1.1K weekly downloads

## Recent versions

- 0.2.1 (latest) — 2020-01-31
- 0.2.0 — 2019-10-29

## README

# it-protocol-buffers

[![Greenkeeper badge](https://badges.greenkeeper.io/mkg20001/it-protocol-buffers.svg)](https://greenkeeper.io/)

[![Build Status](https://travis-ci.org/mkg20001/it-protocol-buffers.svg?branch=master)](https://travis-ci.org/mkg20001/it-protocol-buffers) [![codecov](https://codecov.io/gh/mkg20001/it-protocol-buffers/branch/master/graph/badge.svg)](https://codecov.io/gh/mkg20001/it-protocol-buffers)

Protocol Buffers length-prefixed async-iterator encoder/decoder

# API

-   `ppb.encode(proto)`

    Encodes messages that come in

    `proto`: The Protocol buffers message

    returns: An async-iterator length-prefixed duplex

-   `ppb.decode(proto)`

    Decodes protocol-buffers that come in

    `proto`: The Protocol buffers message

    returns: An async-iterator length-prefixed duplex

-   `.it`

    The same api as above just without length-prefixing.

    Not network safe. Useful for encoding/decoding single messages.

---
_Source: https://npm.io/package/it-protocol-buffers · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
