Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sparkforge/node-size-analyzer
CLI tool to analyze node_modules sizes
https://github.com/sparkforge/node-size-analyzer
Last synced: 5 days ago
JSON representation
CLI tool to analyze node_modules sizes
- Host: GitHub
- URL: https://github.com/sparkforge/node-size-analyzer
- Owner: sparkforge
- Created: 2024-12-23T14:26:42.000Z (13 days ago)
- Default Branch: main
- Last Pushed: 2024-12-23T15:02:00.000Z (13 days ago)
- Last Synced: 2024-12-23T15:30:26.359Z (13 days ago)
- Language: Rust
- Size: 677 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-starred - sparkforge/node-size-analyzer - CLI tool to analyze node_modules sizes (Rust)
- awesome-starred - sparkforge/node-size-analyzer - CLI tool to analyze node_modules sizes (Rust)
README
# Node Size Analyzer
A fast CLI tool to analyze and visualize the size of your node_modules dependencies using a terminal UI.
![Screenshot of Node Size Analyzer](https://raw.githubusercontent.com/sparkforge/node-size-analyzer/main/screenshot.png)
## Features
- Interactive terminal UI using ratatui
- Real-time size calculation of node_modules
- Sorted display by size
- Human-readable size formatting (B, KB, MB)
- Cross-platform support (Windows, MacOS, Linux)## Installation
### Using Cargo
```bash
cargo install node-size-analyzer
```### From Releases
Download the pre-built binary for your platform from the [releases page](https://github.com/sparkforge/node-size-analyzer/releases).
#### Linux/MacOS
```bash
chmod +x node-size-linux # or node-size-macos
./node-size-linux
```#### Windows
```bash
node-size-windows.exe
```## Usage
1. Navigate to your project directory containing node_modules
2. Run `node-size`
3. Press 'q' to exit## Building from Source
```bash
git clone https://github.com/sparkforge/node-size-analyzer.git
cd node-size-analyzer
cargo build --release
```## Contributing
1. Fork the repository
2. Create your feature branch (`git checkout -b feature/amazing-feature`)
3. Commit your changes (`git commit -m 'Add amazing feature'`)
4. Push to the branch (`git push origin feature/amazing-feature`)
5. Open a Pull Request## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
## Acknowledgments
- Built with [ratatui](https://github.com/ratatui-org/ratatui)
- Terminal handling by [crossterm](https://github.com/crossterm-rs/crossterm)