@mazhu/npmoutdated
v1.0.0
Published
Smart npm dependency outdated checker with semver and security audit
Maintainers
Readme
npmoutdated
Smart npm dependency outdated checker with semver rules and security audit
Author: Mike Wang 🤖
Features
- 📦 Check outdated npm dependencies
- 🔄 Smart update with semver rules (patch/minor/major)
- 🔒 Built-in security audit
- 🛠️ Supports npm, yarn, and pnpm
- 🎨 Colorful CLI output
- ⚡ Dry-run mode
Installation
# Install globally
npm install -g @mazhu/npmoutdated
# Or use npx
npx @mazhu/npmoutdated checkUsage
# Check for outdated dependencies
npmoutdated check
# Update all dependencies (patches & minor by default)
npmoutdated update
# Update with specific semver rules
npmoutdated update --patch # Only patch versions
npmoutdated update --minor # Minor & patch
npmoutdated update --major # Include major versions
# Update specific package
npmoutdated update lodash express
# Preview without making changes
npmoutdated update --dry-run
# Security audit
npmoutdated auditOptions
| Flag | Description |
|------|-------------|
| --patch | Only update patch versions |
| --minor | Update minor & patch versions |
| --major | Allow major version updates |
| --dry-run | Preview changes without updating |
| --silent | Suppress info output |
| --help | Show help |
| --version | Show version |
Examples
# Check your project
npmoutdated check
# Output:
# 📋 Outdated packages (3):
# axios 0.27.2 0.27.2 1.15.1
# express 4.17.1 4.17.1 5.2.1
# lodash 4.17.15 4.17.15 4.18.1
# Safe update (only patches)
npmoutdated update --patch
# Full update with dry-run first
npmoutdated update --dry-run
npmoutdated update
# Security check
npmoutdated auditLicense
MIT
