Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>PKG SizeNew to Visual Studio Code? Get it now.
PKG Size

PKG Size

zingerbee

|
5,023 installs
| (1) | Free
Statistics package.json dependencies size 📦
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Language : 🇺🇸 English | 🇨🇳 简体中文

PKG Size

Visual Studio Marketplace Downloads Visual Studio Marketplace Rating Visual Studio Marketplace Release Date Visual Studio Marketplace Version

Overview

PKG Size is a VSCode plugin that statistics package.json dependencies size 📦

Features

  • Size after packing
  • Size after gzip compression
  • Show size of current file in bottom status bar
  • Build result cache

Snapshot

package.json snapshot

Status bar

status

How to use

Clear the current project cache

Click the status bar icon to clear the build cache

or

# Open Command Palette (Command/Ctrl + Shift + P)
Rebuild Deps

will only clear the dependency cache used by the current project (if any)

Clear all cache

  • Linux and MacOS: rm -f ~/.pkg.size
  • Windows: delete C:\Users\YouName\.pkg.size

Question asked frequently

Some deps can't build

deps with specific loader will not builded

Can I build backend myself

Yes

  1. Deployment backend see bundlephobia

  2. Modify configuration file ${home}/.pkg-size 的 baseUrl

{
    "configs":{
        "baseUrl": "https://youdomain"
    }
}

Can I implement the backend myself

Yes

GET /api/size/package=port-seletor@0.1.5

# return
data: {
    size: string
    gzip: string
}

Release Notes

SEE CHANGELOG

Thanks

Package icons created by IconBaandar - Flaticon

build info from bundlephobia

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