bundle-analyze
v0.0.1
Published
Analyze unpacked npm package size with a fast CLI.
Readme
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.--jsonOutput results as JSON.
Examples
Analyze a specific path
npx bundle-analyze ./packages/uiFail if bundle size exceeds limit
npx bundle-analyze --fail-if-exceeds-bytes 1048576Output results as JSON
npx bundle-analyze --json