easy-dep-graph
v1.1.3
Published
Easily see the dependency graph of your npm project
Maintainers
Readme
Easy Dep Graph
Easily see the dependency graph of your npm project!
Table of Contents
Install
npm install -g easy-dep-graphUse
Run the following command on the folder where you package.json is:
npx easy-dep-graphArguments
Peer Dependencies
Display a comprehensive view of all peer dependencies required by your project's packages. This includes:
- Package names and required versions
- Which packages require each peer dependency
- Automatic conflict detection when multiple incompatible versions are required
- Installation status (showing which peer dependencies are already installed)
- One-click installation for missing peer dependencies
Command: --peer-dependencies
Example:
npx easy-dep-graph --peer-dependenciesPackages
A list of packages to show on the graph separated by ','. (By default it shows all packages)
Command: --packages <packages names>
Example:
npx easy-dep-graph --packages open,mustache,fastifyPackage Dependents
This option will only show on graph the packages that depend on the submited package.
Command: --package-dependents <package name>
Example:
npx easy-dep-graph --package-dependents is-dockerPort
The port number to be used when serving the dependency graph. (Default is 8080)
Command: --port <port number>
Example:
npx easy-dep-graph --port 8000No Open
Flag to not open the browser after the depedency graph is done.
Command: --no-open
Example:
npx easy-dep-graph --no-openNo Force Layout
Flag to skip applying the force-directed layout algorithm to the dependency graph. When this flag is used, the graph will display nodes in their initial random positions without automatic layout optimization. This can be useful for very large graphs where the layout calculation might take too long, or when you want to manually arrange nodes.
Command: --no-force-layout
Example:
npx easy-dep-graph --no-force-layoutChangelog
Version 1.1:
- Added
--peer-dependenciesflag to display all peer dependencies in your project - Interactive peer dependency viewer with one-click installation
- Automatic version conflict detection for peer dependencies
- Replaced vis-network with sigma.js for dependency view
Version 1.0:
- published library
FAQs
No FAQs for now. (⌐■_■)
