{"_id":"@elilands/npm-weight","_rev":"3-43506daaf586eac4c4e4a99cd7346a04","name":"@elilands/npm-weight","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@elilands/npm-weight","version":"1.0.0","keywords":["npm","bundlephobia","size","weight","dependencies","cli","audit"],"author":{"name":"elilands"},"license":"MIT","_id":"@elilands/npm-weight@1.0.0","maintainers":[{"name":"elilands","email":"elian.mejiag@gmail.com"}],"bin":{"npm-weight":"dist/index.js"},"dist":{"shasum":"915a9f8eb937bee6e1fbdcb6b67851ab69a4e56c","tarball":"https://registry.npmjs.org/@elilands/npm-weight/-/npm-weight-1.0.0.tgz","fileCount":5,"integrity":"sha512-t7hNfkw38fOsK4pv9r2Kx5mticBpo5scnLRL+FXmEj3DECcWqguvcuArXEsWJ0OSM7xiBob4HLLKNEaRxTyE7A==","signatures":[{"sig":"MEYCIQDIlxb3iKz3oHD/i3ol9kqVDF/ZbNvWBXEK2JpqOMGTCAIhAOVuwjot1ZUj/zGYKjCWSpCzHN+u9b7G/Gm/iV2+9BrJ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4004180},"main":"./dist/index.js","type":"module","engines":{"node":">=20.0.0"},"scripts":{"dev":"tsx watch src/index.ts","build":"tsup"},"_npmUser":{"name":"elilands","email":"elian.mejiag@gmail.com"},"_npmVersion":"11.10.0","description":"The elite CLI to calculate the real cost, weight, and health of your npm dependencies.","directories":{},"_nodeVersion":"22.15.1","dependencies":{"cac":"^7.0.0","picocolors":"^1.1.1","@clack/prompts":"^1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","tsup":"^8.5.1","typescript":"^5.9.3","@types/node":"^25.5.0"},"_npmOperationalInternal":{"tmp":"tmp/npm-weight_1.0.0_1773448538854_0.3208055004376946","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@elilands/npm-weight","version":"1.0.1","keywords":["npm","bundlephobia","size","weight","dependencies","cli","audit"],"author":{"name":"elilands"},"license":"MIT","_id":"@elilands/npm-weight@1.0.1","maintainers":[{"name":"elilands","email":"elian.mejiag@gmail.com"}],"bin":{"npm-weight":"dist/index.js"},"dist":{"shasum":"6732e80f9ca5b775b8b9aaaa4c3212baa5bf9289","tarball":"https://registry.npmjs.org/@elilands/npm-weight/-/npm-weight-1.0.1.tgz","fileCount":5,"integrity":"sha512-6UhTQnpwgoHJNuB/J0jYYdJie55TXqP/vH9fgzoVKJX3dk5reqPZjYTBFjzjj6dHfqRLTdNzowxvpZUHLyQwLQ==","signatures":[{"sig":"MEYCIQDQ6Kw+mqZOSaJ93X4ro/cdZEIMzhfrZLGE/9HhzlMnAgIhAIdlT6iLN3EG/fGqEtanmTJbUYL41gCPsCHKhpggKeW7","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4004203},"main":"./dist/index.js","type":"module","engines":{"node":">=20.0.0"},"scripts":{"dev":"tsx watch src/index.ts","build":"tsup"},"_npmUser":{"name":"elilands","email":"elian.mejiag@gmail.com"},"_npmVersion":"11.10.0","description":"The elite CLI to calculate the real cost, weight, and health of your npm dependencies.","directories":{},"_nodeVersion":"22.15.1","dependencies":{"cac":"^7.0.0","picocolors":"^1.1.1","@clack/prompts":"^1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","tsup":"^8.5.1","typescript":"^5.9.3","@types/node":"^25.5.0"},"_npmOperationalInternal":{"tmp":"tmp/npm-weight_1.0.1_1773448777060_0.13451556278979138","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@elilands/npm-weight","version":"1.0.2","description":"The elite CLI to calculate the real cost, weight, and health of your npm dependencies.","main":"./dist/index.js","type":"module","bin":{"npm-weight":"dist/index.js"},"scripts":{"dev":"tsx watch src/index.ts","build":"tsup"},"engines":{"node":">=20.0.0"},"keywords":["npm","bundlephobia","size","weight","dependencies","cli","audit"],"author":{"name":"elilands"},"license":"MIT","dependencies":{"@clack/prompts":"^1.1.0","cac":"^7.0.0","picocolors":"^1.1.1"},"devDependencies":{"@types/node":"^25.5.0","tsup":"^8.5.1","tsx":"^4.21.0","typescript":"^5.9.3"},"gitHead":"abf6fbceb0977f3f9132b2cd3963b9bd8d730397","_id":"@elilands/npm-weight@1.0.2","_nodeVersion":"22.15.1","_npmVersion":"11.10.0","dist":{"integrity":"sha512-/U9zlAdMDcZVM3iZb5wOdLOPxKM/Kg6NcSxprAIJsmq903uNNph+oUv3nQXVcvliExGZEF/6xNGTBrh05d/l+Q==","shasum":"d514bb65b1f89a719214c0a98543f1f9f8bbf97f","tarball":"https://registry.npmjs.org/@elilands/npm-weight/-/npm-weight-1.0.2.tgz","fileCount":5,"unpackedSize":43732,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIGjthT/YWXk38lzj+KbUlNmitYAxrRBCOHXC9SV43Nk9AiBJItoKhzv90a0Ql1JgByX7wEqvA8ugDE4wU6xzXLJfxQ=="}]},"_npmUser":{"name":"elilands","email":"elian.mejiag@gmail.com"},"directories":{},"maintainers":[{"name":"elilands","email":"elian.mejiag@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/npm-weight_1.0.2_1773758142434_0.6597773000323603"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-14T00:35:38.765Z","modified":"2026-03-17T14:35:42.719Z","1.0.0":"2026-03-14T00:35:39.207Z","1.0.1":"2026-03-14T00:39:37.335Z","1.0.2":"2026-03-17T14:35:42.600Z"},"author":{"name":"elilands"},"license":"MIT","keywords":["npm","bundlephobia","size","weight","dependencies","cli","audit"],"description":"The elite CLI to calculate the real cost, weight, and health of your npm dependencies.","maintainers":[{"name":"elilands","email":"elian.mejiag@gmail.com"}],"readme":"# ⚖️ @elilands/npm-weight\r\n\r\n[![npm version](https://img.shields.io/npm/v/@elilands/npm-weight?style=flat-square&color=cyan)](https://www.npmjs.com/package/@elilands/npm-weight)\r\n[![npm downloads](https://img.shields.io/npm/dt/@elilands/npm-weight?style=flat-square&color=blue)](https://www.npmjs.com/package/@elilands/npm-weight)\r\n[![License: MIT](https://img.shields.io/badge/License-MIT-purple.svg?style=flat-square)](https://opensource.org/licenses/MIT)\r\n\r\n> The elite CLI to calculate the real cost, weight, and health of your npm dependencies.\r\n\r\nEver wondered how much bloat you are actually shipping to your users? Not all dependencies are created equal. Some are lightweight and actively maintained, while others are massive, outdated, and silently killing your app's performance.\r\n\r\n**npm-weight** scans your local `package.json`, bridges directly with the NPM Registry and Bundlephobia, and generates a visual dashboard of your project's health. It separates your client-side payload from your dev-tools, grades them with a strict Health Score, and even auto-updates outdated packages for you.\r\n\r\n---\r\n\r\n## ✨ Features\r\n\r\n- **🧠 Contextual Health Scores:** Automatically grades your packages (A, B, C, F) based on their GZIP size and age. It smartly forgives `devDependencies` for being heavy, but strictly audits your `dependencies`.\r\n- **🌐 Network Orchestration:** Fetches real-time data from NPM and Bundlephobia concurrently to give you the exact physical weight of your code.\r\n- **🔧 Interactive Auto-Fix:** Detects outdated packages and interactively asks if you want to auto-update them to their latest versions using your native package manager.\r\n- **🤖 CI/CD & GitHub PR Ready:** Export pure JSON for your pipelines or raw Markdown tables to paste directly into your Pull Request comments.\r\n- **⚡ Zero Bloat:** Built with modern TypeScript and ESM. Fast, reliable, and strictly typed.\r\n\r\n---\r\n\r\n## 📦 Installation\r\n\r\nYou can run it directly using your favorite package manager without installing it permanently:\r\n\r\n```bash\r\n# Using NPM\r\nnpx @elilands/npm-weight analyze\r\n\r\n# Using PNPM\r\npnpm dlx @elilands/npm-weight analyze\r\n\r\n# Using Yarn\r\nyarn dlx @elilands/npm-weight analyze\r\n```\r\n\r\n*Want to use it globally across all your projects?*\r\n\r\n```bash\r\nnpm install -g @elilands/npm-weight\r\n```\r\n\r\n---\r\n\r\n## 🚀 Usage\r\n\r\n`npm-weight` is designed to give you maximum insights with zero configuration. Open your terminal in any project folder and run:\r\n\r\n### 1. The Visual Dashboard (Standard Mode)\r\nThis scans your project, fetches network data, and renders a beautiful terminal UI with actionable insights.\r\n\r\n```bash\r\nnpx @elilands/npm-weight analyze\r\n# Or use the short alias:\r\nnpx @elilands/npm-weight a\r\n```\r\n\r\n### 2. GitHub PR Mode (Markdown)\r\nWant to prove to your Tech Lead that your new dependency is lightweight? Use the `--md` flag to generate a clean Markdown table. Perfect for copying and pasting into GitHub Pull Requests.\r\n\r\n```bash\r\nnpx @elilands/npm-weight a --md\r\n```\r\n*(Note: If using npm run locally during development, remember to pass the double dash: `npm run dev -- a --md`)*\r\n\r\n### 3. Pipeline Mode (JSON)\r\nBuilding an automated CI/CD pipeline? Extract the raw analytical data in strict JSON format.\r\n\r\n```bash\r\nnpx @elilands/npm-weight a --json\r\n```\r\n\r\n---\r\n\r\n## 🤝 Contributing\r\n\r\nFound a bug or have an idea to make this better? PRs are always welcome! \r\n\r\n1. Clone the repo.\r\n2. Run `npm install`.\r\n3. Make your changes in the `src/` directory.\r\n4. Run `npm run build` to compile the TypeScript.\r\n5. Submit your PR!\r\n\r\n## 📄 License\r\nMIT License. See `package.json` for details. Built for developers, by developers.","readmeFilename":"README.md"}