Skip to content

Commit

Permalink
add badges
Browse files Browse the repository at this point in the history
  • Loading branch information
mourner committed Jul 3, 2024
1 parent 51fb1c7 commit 448056c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# pbf

[![Node](https://github.com/mapbox/pbf/actions/workflows/node.yml/badge.svg)](https://github.com/mapbox/pbf/actions/workflows/node.yml)
![Bundle size](https://img.shields.io/bundlephobia/minzip/pbf)

A low-level, fast, ultra-lightweight (3KB gzipped) JavaScript library for decoding and encoding [protocol buffers](https://developers.google.com/protocol-buffers), a compact binary format for structured data serialization. Works both in Node and the browser. Supports lazy decoding and detailed customization of the reading/writing code.

## Performance
Expand Down
4 changes: 2 additions & 2 deletions test/pbf.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,11 @@ test('writeVarint throws error on a number that is too big', function() {
var buf = new Pbf(Buffer.alloc(0));

assert.throws(function() {
buf.writeVarint(29234322996241367000012);
buf.writeVarint(29234322996241367000012); // eslint-disable-line
});

assert.throws(function() {
buf.writeVarint(-29234322996241367000012);
buf.writeVarint(-29234322996241367000012); // eslint-disable-line
});
});

Expand Down

0 comments on commit 448056c

Please sign in to comment.