Skip to content

Commit 448056c

Browse files
committed
add badges
1 parent 51fb1c7 commit 448056c

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# pbf
22

3+
[![Node](https://github.com/mapbox/pbf/actions/workflows/node.yml/badge.svg)](https://github.com/mapbox/pbf/actions/workflows/node.yml)
4+
![Bundle size](https://img.shields.io/bundlephobia/minzip/pbf)
5+
36
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.
47

58
## Performance

test/pbf.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,11 @@ test('writeVarint throws error on a number that is too big', function() {
127127
var buf = new Pbf(Buffer.alloc(0));
128128

129129
assert.throws(function() {
130-
buf.writeVarint(29234322996241367000012);
130+
buf.writeVarint(29234322996241367000012); // eslint-disable-line
131131
});
132132

133133
assert.throws(function() {
134-
buf.writeVarint(-29234322996241367000012);
134+
buf.writeVarint(-29234322996241367000012); // eslint-disable-line
135135
});
136136
});
137137

0 commit comments

Comments
 (0)