# varint-decoder

> Parse all the varints in a Buffer (for when there are varints everywhere)

Latest version **1.0.0** (published 2020-08-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install varint-decoder
pnpm add varint-decoder
yarn add varint-decoder
bun add varint-decoder
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2020-08-07 |
| First published | 2016-12-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4.0.0 |
| Dependencies | 1 |
| Unpacked size | 1.5 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | David Dias |
| Maintainers | daviddias |
| Keywords | IPFS, varint |

## Links

- npm: https://www.npmjs.com/package/varint-decoder
- Repository: https://github.com/diasdavid/varint-decoder
- Homepage: https://github.com/diasdavid/varint-decoder#readme
- Issues: https://github.com/diasdavid/varint-decoder/issues
- npm.io page: https://npm.io/package/varint-decoder

## Dependencies (1)

- [varint](https://npm.io/package/varint.md) ^5.0.0

## Recent versions

- 1.0.0 (latest) — 2020-08-07
- 0.4.0 — 2020-04-24
- 0.1.1 — 2016-12-18
- 0.1.0 — 2016-12-16

## README

varint-decoder
==============

[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://ipn.io)
[![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/)
[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)
[![Coverage Status](https://coveralls.io/repos/github/diasdavid/varint-decoder/badge.svg?branch=master)](https://coveralls.io/github/diasdavid/varint-decoder?branch=master)
[![Travis CI](https://travis-ci.org/diasdavid/varint-decoder.svg?branch=master)](https://travis-ci.org/diasdavid/varint-decoder)
[![Circle CI](https://circleci.com/gh/diasdavid/varint-decoder.svg?style=svg)](https://circleci.com/gh/diasdavid/varint-decoder)
[![Dependency Status](https://david-dm.org/diasdavid/varint-decoder.svg?style=flat-square)](https://david-dm.org/diasdavid/varint-decoder) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)
![](https://img.shields.io/badge/npm-%3E%3D3.0.0-orange.svg?style=flat-square)
![](https://img.shields.io/badge/Node.js-%3E%3D4.0.0-orange.svg?style=flat-square)

> Parse all the varints in a Buffer (for when there are varints everywhere)

# Usage

## API

```JavaScript
const vd = require('varint-decoder')
const buf = new Buffer('000110', 'hex')

const decoded = vd(buf)

console.log(decoded)
// [0, 1, 16]
```

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