Security News
NVD Backlog Tops 20,000 CVEs Awaiting Analysis as NIST Prepares System Updates
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
uint8-varint
Advanced tools
Read/write varints from Uint8Arrays and Uint8ArrayLists
$ npm i uint8-varint
<script>
tagLoading this module through a script tag will make it's exports available as Uint8Varint
in the global namespace.
<script src="https://unpkg.com/uint8-varint/dist/index.min.js"></script>
import { Uint8ArrayList } from 'uint8arraylist'
import * as varint from 'uint8-varint'
const value = 12345
const buf = new Uint8ArrayList(
new Uint8Array(2)
)
varint.signed.encode(value, buf)
varint.signed.decode(buf) // 12345
BigInt
s are also supported:
import { Uint8ArrayList } from 'uint8arraylist'
import * as varint from 'uint8-varint/big'
const value = 12345n
const buf = new Uint8ArrayList(
new Uint8Array(2)
)
varint.signed.encode(value, buf)
varint.signed.decode(buf) // 12345n
Licensed under either of
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.
FAQs
Read/write unsigned varints from Uint8Arrays and Uint8ArrayLists
The npm package uint8-varint receives a total of 29,112 weekly downloads. As such, uint8-varint popularity was classified as popular.
We found that uint8-varint demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.