npm-animator
v1.0.3
Published
Beautiful terminal animations for npm commands with detailed package status tracking
Maintainers
Readme
npm-animator
Beautiful terminal animations for npm commands with detailed package status tracking.
Features
- 🌈 Beautiful Progress Bars: Visualize npm operations with rainbow-themed progress
- 📦 Package Status Tracking: See individual packages as they're installed, updated, or removed
- 🔄 Live Updates: Real-time feedback on package operations
- 🛡️ Smart Error Handling: Continues installing valid packages even when some fail
- 🚫 Vulnerability Warnings: Clear display of security vulnerabilities
- 🔍 Detailed Summary: Complete breakdown of all package operations at the end
Installation
npm install -g npm-animatorUsage
Use npm-animator as a drop-in replacement for npm:
npm-animator install lodash react redux
npm-animator update express mongoose
npm-animator auditSupported Commands
install/i/addupdateauditfundci/clean-install- ...and more!
Options
--theme / -t: Animation theme to use (default: 'rainbow')
--quiet / -q: Disable animations (default: false)
--dry-run / -d: Test the command without making changes
Error Handling
When installing multiple packages, npm-animator will:
- Install packages one by one
- Continue with valid packages even if some fail
- Show clear error messages for failed packages
- Provide a detailed summary at the end
Example:
npm-animator install lodash invalid-package react
✔ Installed 2 packages (1 failed) in 3.25s
Package summary:
❯ 2 packages installed
❯ 1 package failed
✖ Failed packages:
invalid-package: 404 Not Found - Package does not existVulnerability Warnings
When security vulnerabilities are found, npm-animator displays clear warnings:
⚠ Security vulnerabilities found:
2 vulnerabilities (1 moderate, 1 critical)
Run npm audit for details.Project Structure
npm-animator/
├── bin/
│ └── npm-animator.js # CLI entry point
├── lib/
│ ├── animator.js # Animation engine
│ └── npm-wrapper.js # npm command execution wrapper
├── index.js # Main package entry
├── package.json # Package manifest
└── README.md # DocumentationContributing
- Fork the repository
- Create your feature branch:
git checkout -b feature/my-new-feature - Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin feature/my-new-feature - Submit a pull request
License
MIT
Credits
- Chalk - For terminal colors
- Log-update - For updating terminal output
- Figures - For terminal symbols
- Yargs - For command-line argument parsing
