Node Dependency Analyzer - VS Code Extension
Analyze JavaScript/Node.js project dependencies to identify and report conflicts directly in your editor.
Features
- 🔍 Automatic Conflict Detection - Scans your project on file save
- 📊 Inline Diagnostics - See conflicts directly in your package.json
- 🌳 Tree View - Browse all conflicts in the Explorer sidebar
- ⚡ Quick Fixes - Get suggested fixes for common issues
- 🎯 Multiple Conflict Types:
- Duplicate package versions
- Peer dependency mismatches
- Node.js engine conflicts
- Deprecated packages
- Circular dependencies
Usage
Automatic Scanning
The extension automatically scans your project when:
- You open a workspace containing a
package.json
- You modify
package.json or lock files
- You manually trigger a scan
Manual Scanning
- Open the Command Palette (
Ctrl+Shift+P or Cmd+Shift+P)
- Run:
Node Dependency Analyzer: Scan Project for Dependency Conflicts
View Conflicts
- Problems Panel: View all conflicts in the VS Code Problems panel
- Tree View: Open the "Dependency Conflicts" view in the Explorer sidebar
- Status Bar: Check the status bar for a quick summary
Configuration
Configure the extension in your VS Code settings:
{
"nodeDependencyAnalyzer.autoScan": true,
"nodeDependencyAnalyzer.checkDeprecated": true,
"nodeDependencyAnalyzer.checkCircular": true,
"nodeDependencyAnalyzer.ignorePackages": ["some-package"]
}
Settings
autoScan - Automatically scan when files change (default: true)
checkDeprecated - Check for deprecated packages (default: true)
checkCircular - Check for circular dependencies (default: true)
ignorePackages - Array of package names to ignore
Requirements
- VS Code 1.85.0 or higher
- Node.js 18.0.0 or higher
Supported Package Managers
- npm (package-lock.json)
- Yarn (yarn.lock)
- pnpm (pnpm-lock.yaml)
License
MIT
| |