yarn-progress-tracker
v1.0.0
Published
A beautiful progress tracker for Yarn package installations
Downloads
6
Maintainers
Readme
yarn-progress-tracker 🧶
A powerful Node.js package that provides real-time tracking of Yarn package installations with beautiful progress bars and advanced analytics.
✨ Features
- 📊 Real-time download progress tracking with speed monitoring
- 📦 Package size analysis with dependency breakdown
- ⚡ Network speed detection and optimization
- 🔄 Smart installation time estimation
- 📈 Beautiful progress bars with detailed metrics
- 🎯 Installation stage tracking
- ⌛ Accurate time remaining estimation
- 🌐 Global and local installation support
- 💻 Cross-platform compatibility (Windows, macOS, Linux)
🚀 Installation
yarn global add yarn-progress-trackerUsage
Instead of using yarn add, simply use:
yarn-track <package-name> # Install a specific packageor
yarn-track # Install all packages in package.jsonExamples
- Install a single package:
yarn-track express- Install multiple packages:
yarn-track express lodash moment- Install dev dependencies:
yarn-track -D typescript @types/node- Install packages globally:
yarn-track -g package-name📊 Progress Information
The progress bar displays:
express [██████████░░░░░] 67% || Speed: 1.2MB/s || ETA: 00:30 || 5.2/10.5 MB
Command Options
| Option | Description |
|--------|-------------|
| -D, --dev | Save packages as development dependencies |
| -g, --global | Install packages globally |
Analysis Output
Package Size Analysis:
├─ Main Package: 2.5MB
├─ Dependencies: 15.8MB
└─ Total Size: 18.3MB
Estimated Installation Time: 0h 1m 30s🛠 Technical Details
Installation Stages
Package Analysis
- Size calculation
- Dependency tree analysis
- Network speed detection
Download Progress
- Real-time speed monitoring
- Accurate size reporting
- ETA calculation
Installation Progress
- Package resolution
- Dependency linking
- Final installation
Progress Tracking Features
- Automatic network speed detection
- Smart ETA calculation based on package size
- Detailed dependency analysis
- Cross-platform progress bar rendering
🔧 Development
To set up the project for development:
# Clone the repository
git clone https://github.com/yourusername/yarn-progress-tracker.git
# Navigate to project directory
cd yarn-progress-tracker
# Install dependencies
yarn install
# Build the project
yarn build
# Link for local development
yarn link
# Run in development mode
yarn dev🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
📝 License
MIT © [isaacobenzy]
💖 Support
If you find this package helpful, please consider:
- Giving it a star ⭐️
- Sharing it with others
- Contributing to its development
🔗 Related Projects
This project is inspired by the npm-progress-tracker and aims to provide similar functionality for Yarn users.
📦 Author
isaacobenzy - Initial work - GitHub Profile
