2.1.5 • Published 10 months ago

@rndev666/dep v2.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@rndev666/dep

npm package Build Status Downloads Issues Code Coverage Commitizen Friendly Semantic Release

A powerful tool to analyze and visualize dependencies between files in TypeScript/JavaScript projects

Features

  • Analyze imports and function calls between files
  • Generate dependency graphs in multiple formats (JSON, D3, DOT, HTML)
  • Interactive HTML visualization with D3.js
  • Detect circular dependencies
  • Find most imported files
  • Support for both TypeScript and JavaScript projects

Installation

npm install @rndev666/dep

Usage

Usage: dep [options]

Options:
  -V, --version            output the version number
  -p, --pattern <pattern>  pattern to match files (required)
  -l, --language <language> language to analyze (ts or js) (default: "ts")
  -o, --output <file>      output file for the graph
  -f, --format <format>    output format (json, d3, dot, html) (default: "html")
  --open                   open the HTML visualization in browser (default: true)

Examples:

  # Analyze TypeScript files and generate HTML visualization
  $ dep --pattern "src/**/*.ts" --language ts --output graph.html --format html

  # Analyze JavaScript files and output JSON
  $ dep --pattern "src/**/*.js" --language js --output dependencies.json --format json

Example Output

The tool provides a detailed analysis of your codebase, including:

  • Total number of files analyzed
  • Import dependencies between files
  • Function call relationships
  • Circular dependencies (if any)
  • Most imported files

The HTML visualization provides an interactive graph where you can:

  • Zoom and pan
  • Click on nodes to see details
  • Hover over edges to see relationship types
  • Search for specific files or functions
2.1.5

10 months ago

2.1.4

10 months ago

2.1.3

10 months ago

2.1.2

10 months ago

2.1.1

10 months ago

2.1.0

10 months ago