0.1.8 • Published 2 years ago

@syakoo/dmdg v0.1.8

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Tool to draw a graph of module dependencies in a directory as Markdown

Installation

npm install -D @syakoo/dmdg

Usage

The following will generate a dependency graph for a module in ./src as README.md (here):

npx @syakoo/dmdg draw ./src

You can output the results in a block by writing the README as follows:

<!-- DMDG BEGIN -->
Output here
<!-- DMDG END -->

The default graph depth is 5, but you can set it yourself:

npx @syakoo/dmdg draw ./src --maxDepth=10

Warning Since mermaid is used to draw the graph, if the graph is too large, the drawing will fail. It is recommended that maxDepth be set to an appropriate value.

LICENSE

MIT

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago