Skip to content

danisss9/easy-dep-graph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Easy Dep Graph

Easily see the dependency graph of your npm project!

Table of Contents

Install

npm install -g easy-dep-graph

Use

Run the following command on the folder where you package.json is:

npx easy-dep-graph

Arguments

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-dependencies

Packages

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,fastify

Package 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-docker

Port

The port number to be used when serving the dependency graph. (Default is 8080)

Command: --port <port number>

Example:

npx easy-dep-graph --port 8000

No Open

Flag to not open the browser after the depedency graph is done.

Command: --no-open

Example:

npx easy-dep-graph --no-open

No 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-layout

Changelog

Version 1.1:

  • Added --peer-dependencies flag 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. (⌐■_■)

About

Easily see the dependency graph of your npm project!

Topics

Resources

License

Stars

Watchers

Forks

Contributors