bump-buddy
Version:
Check if internal and external npm packages are up-to-date.
127 lines (79 loc) โข 2.74 kB
Markdown
<!-- @format -->
# ๐ถ bump-buddy
> A simple CLI tool to check, audit, and update outdated npm packages in your JavaScript or React project.
---
## โจ Features
- โ
Check versions of all or specific npm packages
- ๐ง Update outdated packages automatically
- ๐ฆ Works in any Node.js / React project
- ๐ Supports custom project paths
- ๐งช Dry-run mode to preview updates
- ๐ JSON or table output
- โ๏ธ CI/CD friendly
- ๐ง Checks for unused dependencies in project
---
## ๐ฆ Installation
Install globally:
```bash
npm install -g bump-buddy
```
## bump-buddy Usage
To Check all installed dependencies:
```bash
bump-buddy
```
To Check a project in a specific path:
```bash
bump-buddy --path ../my-project
```
To Check specific packages:
```bash
bump-buddy react axios
```
To Update all outdated packages:
```bash
bump-buddy --update
```
To Update specific packages:
```bash
bump-buddy react --update
```
To Dry run (simulate updates):
```bash
bump-buddy --update --dry-run
```
To Check for unused dependencies:
```bash
bump-buddy --unused
```
To Check for unused dependencies in a specific path:
```bash
bump-buddy --path ../my-project --unused
```
To Output in JSON format:
```bash
bump-buddy --json
```
### ๐ Example Output
```text
๐ Checking packages in: ./my-app
โโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโฌโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโ
โ Package โ Installed โ Latest โ Status โ
โโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโผโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโค
โ react โ 18.2.0 โ 18.2.0 โ โ Up-to-date โ
โ axios โ 1.5.1 โ 1.6.3 โ โ Outdated โ
โโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโดโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโ
```
## ๐ CLI Help
To see available commands and options:
```bash
bump-buddy --help
```
| Flag | Alias | Description |
| ----------- | ----- | -------------------------------------------- |
| `--path` | `-p` | Path to the project directory |
| `--update` | `-u` | Automatically install latest versions |
| `--dry-run` | `-d` | Show what would be updated (no changes made) |
| `--json` | | Output results as JSON |
| `--unused` | | Checks for unused dependencies |
| `--help` | `-h` | Show usage info |