import-cost-core

JSON →
library 5.5.0 ·javascript
verified May 1, 2026

Calculate the bundle size of imported packages in JavaScript and TypeScript with a CLI and Node.js API. Version 5.5.0, actively maintained (2025 release). Powered by esbuild and es-module-lexer for high performance — scans 50+ files in less than a second. Provides minified, gzipped, and brotli sizes; identifies tree-shakeable packages; supports budget enforcement, JSON output, ignore patterns, watch mode, and git diff for CI/CD. Works with npm, pnpm, yarn, and bun. Aims to be a drop-in replacement for the deprecated import-cost VS Code extension backend, offering more accuracy and speed than webpack-bundle-analyzer or cost-of-modules.

total hits 15
actors 3 distinct systems
last hit 3d ago AhrefsBot
GPTBot
2
Script
1
Humans
2

top countries 🇨🇦 Canada · 🇺🇸 United States · 🇫🇷 France · 🇬🇧 United Kingdom · 🇮🇳 India