diff --git a/README.md b/README.md index 80af00a..f2bbd06 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/test/pbf.test.js b/test/pbf.test.js index 9ee5e41..dce47ea 100644 --- a/test/pbf.test.js +++ b/test/pbf.test.js @@ -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 }); });