Skip to content

Commit

Permalink
add CLI Usage to README (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
izelnakri authored Jan 26, 2022
1 parent 60d407a commit 45d8210
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,28 @@

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

## `/dependencies-of/`

This tool shows a Graphviz rendering of high-level module dependencies.

## CLI Usage

```sh
$ deno install -f -n deno-graph --allow-run=deno,dot https://raw.githubusercontent.com/cloudydeno/module-visualizer/main/feat/dependencies-of/cli.ts
✅ Successfully installed deno-graph

$ deno-graph https://deno.land/x/[email protected]/mod.ts
digraph "imported modules" {
rankdir="TB";

"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]"];
"https://deno.land/x/[email protected]" -> "https://deno.land/[email protected]";

"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]"];

}
```

## `/dependencies-of/`

The implementation was initially represented by this shell pipeline:

```sh
Expand Down

0 comments on commit 45d8210

Please sign in to comment.