Releases: onamfc/package-analyzer
Releases · onamfc/package-analyzer
Initial Release - v1.0.3
Overview
Initial release of @onamfc/pkg-inspect - a fast, local dependency size analyzer for Node.js projects. This tool helps developers understand which dependencies are taking up the most space in their projects by analyzing the actual installed node_modules directory.
Core Functionality
- Analyzes installed dependency sizes in node_modules directory
- Provides sorted list of dependencies by size (largest first)
- Calculates total size of all dependencies
- Fast local analysis without external API calls
CLI Tool
- Global installation support via npm
- Direct usage via npx without installation
- Analyze current directory or specify custom project path
- JSON output option for programmatic usage
- Colored output with option to disable colors
- Real-time analysis feedback with loading spinner
- Displays top 3 largest dependencies
Programmatic API
- analyzeProject(projectPath) - Analyzes dependencies and returns detailed results
- formatSize(bytes) - Converts bytes to human-readable format (B, KB, MB, GB)
- formatResults(results) - Formats analysis results as a readable table
- Full ES Module support
User Experience
- Formatted table output with clear visual separators
- Human-readable size formatting
- Helpful top-3 summary highlighting biggest dependencies
- Error handling with clear error messages