uint8-varint
Read/write unsigned varints from Uint8Arrays and Uint8ArrayLists
Last updated 7 months ago by GitHub Actions .
Apache-2.0 OR MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install uint8-varint 
SYNC missed versions from official npm registry.

uint8-varint

codecov CI

Read/write unsigned varints from Uint8Arrays and Uint8ArrayLists

Install

$ npm i uint8-varint

Browser <script> tag

Loading this module through a script tag will make its exports available as Uint8Varint in the global namespace.

<script src="https://unpkg.com/uint8-varint/dist/index.min.js"></script>

Table of contents

Usage

import { Uint8ArrayList } from 'uint8arraylist'
import * as varint from 'uint8-varint'

const value = 12345

const buf = new Uint8ArrayList(
  new Uint8Array(2)
)
varint.encode(value, buf)

varint.decode(buf) // 12345

API Docs

License

Licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Current Tags

  • 3.0.0                                ...           latest (7 months ago)

17 Versions

  • 3.0.0                                ...           7 months ago
  • 2.0.5                                ...           7 months ago
  • 2.0.4                                ...           3 years ago
  • 2.0.3                                ...           3 years ago
  • 2.0.2                                ...           3 years ago
  • 2.0.1                                ...           3 years ago
  • 2.0.0                                ...           3 years ago
  • 1.0.8                                ...           3 years ago
  • 1.0.7                                ...           3 years ago
  • 1.0.6                                ...           4 years ago
  • 1.0.5                                ...           4 years ago
  • 1.0.4                                ...           4 years ago
  • 1.0.3                                ...           4 years ago
  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
  • 0.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Total 64
Today 0
This Week 0
This Month 23
Last Day 0
Last Week 21
Last Month 17
Dependencies (2)
Dev Dependencies (6)

© 2010 - cnpmjs.org x YWFE | Home | YWFE