dep-wizard
v1.0.2
Published
[](https://www.npmjs.com/package/dep-wizard) [](LICENSE) [](https://www.npmjs.c
Readme
Dep-Wizard 🧙♂️
Visualize, Scan, and Resolve Dependency Issues in Your Node.js Projects!
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.
Features ✨
- 🔍 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.
Installation 📦
Install the package globally to access it from anywhere:
npm install -g dep-wizardOr install it locally to use in a specific project:
npm install dep-wizardUsage 🚀
Once installed, you can use dep-wizard via the command line. The syntax is:
dep-wizard <command>Available Commands:
1. Scan Dependencies
Find conflicts and outdated packages in your node_modules directory.
dep-wizard scanExample Output:
Scanning for dependency conflicts...
⚠️ Conflict detected: [email protected] vs [email protected]
✅ All other dependencies are up-to-date!2. Resolve Conflicts
Automatically resolve version mismatches for your dependencies.
dep-wizard resolveExample Output:
Resolving conflicts...
✅ package-name updated to version 2.0.03. Visualize Dependency Tree
Generate a visual representation of your project's dependencies.
dep-wizard visualizeExample Output:
Dependency tree built!
{
"chalk": {},
"yargs": {
"yargs-parser": {},
"cliui": {
"wrap": {}
}
}
}Why Dep-Wizard? 🤔
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.
How It Works 🛠
Scanning:
Scans yournode_modulesandpackage.jsonfor:- 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.
Configuration ⚙️
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.
Contributing 🤝
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.
License 📜
This project is licensed under the MIT License.
Feedback and Support 🛠
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! 🧙♂️✨
