Skip to content

Commit 45d8210

Browse files
authored
add CLI Usage to README (#9)
1 parent 60d407a commit 45d8210

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

README.md

+20-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,28 @@
22

33
Live @ https://deno-visualizer.danopia.net
44

5-
## `/dependencies-of/`
6-
75
This tool shows a Graphviz rendering of high-level module dependencies.
86

7+
## CLI Usage
8+
9+
```sh
10+
$ deno install -f -n deno-graph --allow-run=deno,dot https://raw.githubusercontent.com/cloudydeno/module-visualizer/main/feat/dependencies-of/cli.ts
11+
✅ Successfully installed deno-graph
12+
13+
$ deno-graph https://deno.land/x/[email protected]/mod.ts
14+
digraph "imported modules" {
15+
rankdir="TB";
16+
17+
"https://deno.land/x/[email protected]"[shape="box",label="/x/[email protected]\l4 files, 9 KB\l",penwidth="1.6931471805599454",fontname="Arial",style="filled",tooltip="https://deno.land/x/[email protected]",fillcolor="lightskyblue",href="https://deno.land/x/[email protected]"];
18+
"https://deno.land/x/[email protected]" -> "https://deno.land/[email protected]";
19+
20+
"https://deno.land/[email protected]"[shape="box",label="/[email protected]\l • /encoding\l2 files, 3 KB\l",penwidth="1",fontname="Arial",style="filled",tooltip="https://deno.land/[email protected]",fillcolor="lightgreen",href="https://deno.land/[email protected]"];
21+
22+
}
23+
```
24+
25+
## `/dependencies-of/`
26+
927
The implementation was initially represented by this shell pipeline:
1028

1129
```sh

0 commit comments

Comments
 (0)