{"library":"fast-import-cost","type":"library","category":null,"description":"A CLI tool and Node.js library for calculating the bundle size of imported packages in JavaScript and TypeScript files. v5.5.0, actively maintained. Powered by esbuild and es-module-lexer, it offers fast scanning (50+ files in under 1 second) and provides minified, gzipped, and brotli sizes. Differentiators include tree-shaking awareness, a `--budget` flag for CI enforcement, diff support between git branches, and zero-config operation with npm, pnpm, yarn, and bun. Ships TypeScript definitions.","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 fast-import-cost","imports":["import { importCost } from 'fast-import-cost'","import { Lang } from 'fast-import-cost'","import { cleanup } from 'fast-import-cost'","import type { PackageInfo } from 'fast-import-cost'"]},{"cmd":"yarn add fast-import-cost","imports":[]},{"cmd":"pnpm add fast-import-cost","imports":[]}],"homepage":null,"github":"https://github.com/ruban-s/import-cost","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/fast-import-cost","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}