import-size is a CLI tool and JavaScript library for accurately measuring the real cost of importing npm packages into your projects, taking into account minification, gzipping, and tree-shaking. It helps developers identify large dependencies that impact bundle size, providing insights to optimize application performance. Analyze package weight locally or integrate into CI/CD pipelines to prevent regressions and ensure efficient code delivery. Use import-size to proactively manage and improve web application loading times.