Dep-Wizard
is a command-line tool designed to make managing dependencies easier for developers. With just a few commands, you can scan for conflicts, resolve issues, and visualize the dependency tree for any Node.js project.
- 🔍 Scan Dependencies: Find potential conflicts and outdated packages.
- 🛠 Resolve Issues: Resolve version mismatches effortlessly.
- 🌳 Visualize Dependency Tree: See a complete tree of your project's dependencies.
- ⚡️ Easy to Use: Simple CLI interface with detailed output.
Install the package globally to access it from anywhere:
npm install -g dep-wizard
Or install it locally to use in a specific project:
npm install dep-wizard
Once installed, you can use dep-wizard
via the command line. The syntax is:
dep-wizard <command>
Find conflicts and outdated packages in your node_modules
directory.
dep-wizard scan
Example Output:
Scanning for dependency conflicts...
⚠️ Conflict detected: package-name@1.0.0 vs package-name@2.0.0
✅ All other dependencies are up-to-date!
Automatically resolve version mismatches for your dependencies.
dep-wizard resolve
Example Output:
Resolving conflicts...
✅ package-name updated to version 2.0.0
Generate a visual representation of your project's dependencies.
dep-wizard visualize
Example Output:
Dependency tree built!
{
"chalk": {},
"yargs": {
"yargs-parser": {},
"cliui": {
"wrap": {}
}
}
}
Managing dependencies in large Node.js projects can become overwhelming. Dependency conflicts, outdated packages, and deeply nested trees are common challenges. Dep-Wizard
simplifies this process by automating scanning, resolving, and visualizing tasks.
-
Scanning:
Scans yournode_modules
andpackage.json
for:- Version conflicts
- Outdated dependencies
-
Resolving:
Updates conflicting dependencies to the latest compatible versions. -
Visualization:
Builds a detailed dependency tree, making it easy to understand the structure of your project.
Dep-Wizard
works out of the box, but you can customize its behavior by adding a .dep-wizardrc.json
file in the root of your project:
{
"ignore": [".bin"],
"maxDepth": 3
}
ignore
: Directories to skip during scanning or visualization.maxDepth
: Maximum depth for the dependency tree visualization.
We welcome contributions to improve Dep-Wizard
! Here's how you can get involved:
- Fork the repository.
- Create a new branch for your feature/bug fix.
- Submit a pull request.
This project is licensed under the MIT License.
If you encounter any issues or have suggestions, feel free to open an issue.
Let Dep-Wizard
be your guide to dependency management in Node.js! 🧙♂️✨