vlq
npmv2.0.4TypeScriptGenerate, and decode, base64 VLQ mappings for source maps and other uses
Not recommended for new projects
No — vlq should not be adopted for new projects. Last published 1787 days ago.
- AAdoption: grade A, Excellent.
9.5M downloads per week and 2 known dependents.
- FMaintenance: grade F, Failing.
Last published 1787 days ago.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 7.3 KB installed.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- 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 vlq to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- No constraint declared
- Module format
- ESM + CommonJS
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the vlq README.
vlq.encode(123); // '2H';
vlq.encode([123, 456, 789]); // '2HwcqxB'vlq vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| vlqthis page | 9.5M | 2 | MIT | 4 years ago |
| istanbul-lib-source-maps | 55.8M | 5 | BSD-3-Clause | 1 day ago |
| @vitest/istanbul-lib-source-maps | 25K | 2 | MIT | 1 day ago |
| @jridgewell/sourcemap-codec | 0 | 7 | MIT | 1 day ago |
| magic-string | 0 | 11 | MIT | 1 day ago |
| base64-js | 0 | 3 | MIT | 1 day ago |
Dependencies
Declared by vlq v2.0.4. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (2)
Used by
Popular packages that depend on vlq.
Relationship graph
Dependencies (left) and dependents (right) of vlq.
Frequently installed together
Runtime to be use with the Flow Enums transform.
invariant
Generates and consumes source maps
flow typed nullthrows
The Babel Traverse module maintains the overall tree state, and is responsible for replacing, removing, and adding nodes
A JavaScript parser
A small library for working with 0- and 1-based offsets in a type-checked way.
Babel Types is a Lodash-esque utility library for AST nodes
🚇 Source map generator for Metro.
🚇 A tool to find the source location from JS bundles and stack traces.
Release history
No releases in the last two years, typically about 99 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 2.0.4latest | 4 years ago | 7.3 KB | MIT |
| 2.0.3 | 4 years ago | 9.4 KB | MIT |
| 2.0.2 | 4 years ago | 5.8 KB | MIT |
| 2.0.1 | 4 years ago | 5.8 KB | MIT |
| 2.0.0 | 4 years ago | 5.8 KB | MIT |
| 1.0.1 | 7 years ago | 8.1 KB | MIT |
| 1.0.0 | 8 years ago | — | MIT |
| 0.2.3 | 9 years ago | — | MIT |
| 0.2.2 | 9 years ago | — | MIT |
| 0.2.1 | 11 years ago | — | MIT |
| 0.2.0 | 11 years ago | — | MIT |
| 0.1.0 | 12 years ago | — | MIT |
Overview
vlq is an npm package that generate, and decode, base64 VLQ mappings for source maps and other uses. It is extremely widely used, with about 9.5M downloads per week and 2 known dependents in the graph. The latest version is 2.0.4, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need generate, and decode, base64 VLQ mappings for source maps and other uses and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (9.5M weekly downloads).
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
- Lean dependency tree (2 direct dependencies).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Keywords
Frequently asked questions
Should I use vlq?
No — vlq should not be adopted for new projects. Last published 1787 days ago.
How do I install vlq?
Run `npm install vlq` to add vlq to your npm project.
What license is vlq released under?
vlq is distributed under the MIT license.
How popular is vlq?
vlq has approximately 9,509,788 downloads per week and 2 known dependent packages.
Is vlq still maintained?
The most recent release of vlq (v2.0.4) was published 4 years ago.
Does vlq run install scripts?
No. vlq does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.