🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

bundle-analyze

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bundle-analyze

Analyze unpacked npm package size with a fast CLI.

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

Bundle Analyze

Analyze the unpacked size of an npm package with a simple, fast CLI.

npx bundle-analyze

Total unpacked size: 9 KB
├── dist 6.14 KB (68.2%)
│  └── index.cjs 6.14 KB (68.2%)
├── package.json 1.32 KB (14.7%)
├── LICENSE 1.04 KB (11.6%)
└── README.md 511 B (5.5%)

Options

  • --fail-if-exceeds-bytes <bytes> Exit with code 1 if the size exceeds the limit.
  • --json Output results as JSON.

Examples

Analyze a specific path

npx bundle-analyze ./packages/ui

Fail if bundle size exceeds limit

npx bundle-analyze --fail-if-exceeds-bytes 1048576

Output results as JSON

npx bundle-analyze --json

Keywords

bundle

FAQs

Package last updated on 02 Feb 2026

Did you know?

Socket

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.

Install

Related posts