{"library":"import-cost-core","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"5.5.0","tags":["javascript","import","require","size","cost","bundle","bundle-size","bundlesize","webpack","typescript"],"last_verified":"Fri May 01","install":[{"cmd":"npm install import-cost-core","imports":["import { importCost } from 'import-cost-core'","import { Lang } from 'import-cost-core'","import type { PackageInfo } from 'import-cost-core'","import { cleanup } from 'import-cost-core'"]},{"cmd":"yarn add import-cost-core","imports":[]},{"cmd":"pnpm add import-cost-core","imports":[]}],"homepage":null,"github":"https://github.com/ruban-s/import-cost","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/import-cost-core","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}