unpacman is a simple CLI tool to calculate and display the unpacked sizes of all dependencies in a package.json
file. It highlights large package sizes, making it easier for developers to analyze dependency sizes directly from the terminal.
- 🎨 Color-coded Output: Large dependencies are displayed in red, and smaller ones in green.
- 📊 Detailed Size Analysis: Provides the unpacked sizes for all dependencies and a total size summary.
- ⚡ Quick and Lightweight: Runs with minimal overhead.
- 🛠️ Built with TypeScript: Reliable and type-safe.
Install unpacman
globally using npm
:
npm install -g unpacman
Or run it directly with npx
(no installation required):
npx unpacman
Navigate to a project directory containing a package.json
file and run:
npx unpacman
The output will display:
- The unpacked size of each dependency.
- A color-coded indicator for large (red) and small (green) packages.
- The total unpacked size of all dependencies at the end.
We welcome contributions! Follow these steps to contribute:
- Clone the repository:
git clone https://github.com/yourusername/unpacman.git
- Install dependencies:
npm install
- Build the project:
npm run build
- Test your changes:
npm run start
Feel free to open issues or submit pull requests with your ideas and fixes.
This project is licensed under the MIT License.
- Built with TypeScript.