</>PackageGraphPackageGraph

varint

npmv6.0.0

protobuf-style varint bytes - use msb to create integer values of varying sizes

Not recommended for new projects

No — varint should not be adopted for new projects. Last published 2172 days ago.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • FMaintenance: grade F, Failing.

    Last published 2172 days ago.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 9.4 KB installed.

  • ASupply chain: grade A, Excellent.

    No install scripts, 2 maintainers, and a contained dependency surface.

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding varint to a project.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

9.4 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

Longest resolved dependency chain below this package.

Compatibility

Node.js
No constraint declared
Module format
CommonJS only
TypeScript
No bundled types
Install scripts
None

Quick start

A usage example from the varint README.

javascriptFull README ↗
var varint = require('varint')

var bytes = varint.encode(300) // === [0xAC, 0x02]
varint.decode(bytes) // 300
varint.decode.bytes // 2 (the last decode() call required 2 bytes)

varint vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
varintthis page01MIT6 years ago
html-escaper79.8M1MIT1 day ago
query-string22.1M3MIT1 day ago
@nodable/entities02MIT1 day ago
encodeurl133.6M5MIT1 day ago
decode-uri-component01MIT1 day ago

Dependencies

Declared by varint v6.0.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (1)

tape ~2.12.3

Used by

Popular packages that depend on varint.

Relationship graph

Dependencies (left) and dependents (right) of varint.

sass-embeddedvarint
varint dependencies dependents

Frequently installed together

Release history

No releases in the last two years, typically about 103 days apart.

Recent versions of varint
VersionPublishedSizeLicense
6.0.0latest6 years ago9.4 KBMIT
5.0.26 years ago8.8 KBMIT
5.0.16 years ago9.4 KBMIT
5.0.09 years agoMIT
4.0.110 years agoMIT
4.0.011 years agoMIT
3.0.112 years agoMIT
3.0.012 years agoMIT
2.0.012 years agoMIT
1.2.012 years agoMIT
1.1.012 years agoMIT
1.0.013 years agoMIT
0.0.313 years agoMIT
0.0.213 years agoMIT
0.0.113 years agoMIT

Overview

varint is an npm package that protobuf-style varint bytes - use msb to create integer values of varying sizes. It has 1 known dependents in the graph. The latest version is 6.0.0, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need protobuf-style varint bytes - use msb to create integer values of varying sizes and value a focused solution.

When not to use it

Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.

Pros

  • Clear open-source license (MIT).
  • Lean dependency tree (1 direct dependencies).

Cons

  • No bundled TypeScript types (may require a separate @types package).

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Frequently asked questions

Should I use varint?

No — varint should not be adopted for new projects. Last published 2172 days ago.

How do I install varint?

Run `npm install varint` to add varint to your npm project.

What license is varint released under?

varint is distributed under the MIT license.

How popular is varint?

npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on varint.

Is varint still maintained?

The most recent release of varint (v6.0.0) was published 6 years ago.

Does varint run install scripts?

No. varint does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.