← 返回
未分类

Dependency Update Checker

CLI tool to check for outdated dependencies in package.json, requirements.txt, pyproject.toml, and other package files.
CLI 工具,用于检查 package.json、requirements.txt、pyproject.toml 等包文件中的过时依赖。
derick001 derick001 来源
未分类 clawhub v1.0.1 1 版本 99470.9 Key: 无需
★ 0
Stars
📥 188
下载
💾 1
安装
1
版本
#latest

概述

Dependency Update Checker

What This Does

A CLI tool that checks for outdated dependencies by running native package manager commands. Currently supports:

  • npm: Checks package.json dependencies using npm outdated
  • pip: Checks requirements.txt using pip list --outdated
  • poetry: Checks pyproject.toml using poetry show --outdated (if poetry is installed)

The tool detects which package managers are relevant based on files in the current directory and runs the appropriate checks.

When To Use

  • You want a quick overview of outdated dependencies across multiple projects
  • You need to check dependency status before updating or deploying
  • You're managing multiple projects with different package managers
  • You want a consistent interface for checking updates across ecosystems

Usage

Check dependencies in current directory:

python3 scripts/main.py check

Check specific package manager:

python3 scripts/main.py check --manager npm
python3 scripts/main.py check --manager pip
python3 scripts/main.py check --manager poetry

Output format (JSON):

python3 scripts/main.py check --format json

Examples

Example 1: Check all dependencies

cd /path/to/project
python3 scripts/main.py check

Output:

Checking dependencies...
[✓] Found package.json
[✓] Running npm outdated...
┌─────────────────┬─────────┬─────────┬─────────┬──────────────┐
│ Package         │ Current │ Wanted  │ Latest │ Package Type │
├─────────────────┼─────────┼─────────┼─────────┼──────────────┤
│ express         │ 4.17.1  │ 4.18.0  │ 4.18.0  │ dependencies │
│ lodash          │ 4.17.20 │ 4.17.21 │ 4.17.21 │ dependencies │
└─────────────────┴─────────┴─────────┴─────────┴──────────────┘

[✓] Found requirements.txt
[✓] Running pip list --outdated...
┌─────────────────┬─────────┬─────────┐
│ Package         │ Current │ Latest  │
├─────────────────┼─────────┼─────────┤
│ requests        │ 2.28.1  │ 2.31.0  │
│ flask           │ 2.2.3   │ 2.3.0   │
└─────────────────┴─────────┴─────────┘

Example 2: JSON output

python3 scripts/main.py check --format json

Output:

{
  "npm": [
    {
      "package": "express",
      "current": "4.17.1",
      "wanted": "4.18.0",
      "latest": "4.18.0",
      "type": "dependencies"
    }
  ],
  "pip": [
    {
      "package": "requests",
      "current": "2.28.1",
      "latest": "2.31.0"
    }
  ]
}

Requirements

  • Python 3.x
  • npm: Required for checking Node.js dependencies
  • pip: Required for checking Python dependencies
  • poetry: Optional, for checking Poetry projects

Limitations

  • This is a CLI tool, not an auto-integration plugin
  • Requires package managers to be installed and available in PATH
  • Some package managers may not support JSON output (fallback to text parsing)
  • Only checks direct dependencies, not transitive dependencies
  • Does not automatically update dependencies (check-only tool)
  • May have issues with private registries or custom package sources
  • Performance depends on network speed for checking remote registries

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-05-12 05:31 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Multi-Chat Context Manager

derick001
用于按频道/用户存储和检索会话上下文的CLI工具。
★ 0 📥 837
dev-programming

API Endpoint Tester

derick001
支持多种HTTP方法、请求头和载荷的REST API端点测试CLI工具。
★ 1 📥 786
dev-programming

HTTP Request Builder

derick001
从命令行界面构建、测试和保存HTTP请求,支持自定义请求头、认证、请求体、Cookie、模板、交互模式及请求历史记录。
★ 0 📥 870