Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Package Dependency Size & Vulnerability LensNew to Visual Studio Code? Get it now.
Package Dependency Size & Vulnerability Lens

Package Dependency Size & Vulnerability Lens

Zyronix

|
1 install
| (0) | Free
Inline package size (gzip/min), latest version, license, and security vulnerability audit CodeLens for package.json.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Package Dependency Size & Vulnerability Lens

A VS Code extension that enhances your package.json with inline bundle sizes, latest version update alerts, and security vulnerability audit CodeLens.

Features

  • Inline Bundle Size & Gzip Size: Displays minified bundle size and gzip size directly above each package in package.json.
  • Security Vulnerability Audit: Queries open-source vulnerability databases (OSV) and flags vulnerable package versions with interactive warning badges.
  • Latest Version Checker: Indicates whether your dependency is on the latest version or if an update is available.
  • Rich Hover Tooltips: Hover over any package in package.json to inspect:
    • Exact minified size and gzipped size
    • License details (MIT, Apache, BSD, etc.)
    • Security advisory details with direct CVE links
    • Quick navigation links to NPM, Bundlephobia, and GitHub repository.
  • Local Smart Caching: Caches API responses locally with configurable TTL to keep editor performance fast and offline-friendly.

Usage

  1. Open any package.json file in VS Code.
  2. CodeLens badges will automatically appear above dependencies in dependencies, devDependencies, peerDependencies, and optionalDependencies.
  3. Click on a size badge to inspect bundle composition on Bundlephobia.
  4. Click on a version badge to view the package on NPM.
  5. Click on a vulnerability badge to view CVE details and fixes.

Extension Commands

  • Dependency Lens: Refresh Dependency Info: Clears local cache and re-queries metadata and vulnerability status.

Extension Settings

This extension contributes the following settings:

Setting Type Default Description
packageDependencyLens.showSize boolean true Show package bundle size and gzip size CodeLens
packageDependencyLens.showVulnerabilities boolean true Show security vulnerability warnings
packageDependencyLens.showLatestVersion boolean true Show latest version update notices
packageDependencyLens.showLicense boolean true Show package license in Hover tooltips
packageDependencyLens.cacheTtlMinutes number 60 Cache time-to-live in minutes

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft