2.0.10 • Published 2 years ago

tsviz v2.0.10

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

tsviz

npm npm

This simple tool creates a UML diagram from typescript modules.

diagram

Installation

npm install -g tsviz-cli

You also need to install GraphViz, including correctly added it to your PATH.

Usage

Cli

tsviz-cli <switches> <sources filename/directory> <output.png>

Available switches:
  -d, dependencies: produces the modules dependencies diagram
  -svg: output an svg file

In order to create a diagram for an entire project you simply type:

tsviz-cli samples/ diagram.png

Library

You may also consume tsviz npm library in your project to obtain a digest of modules, classes, methods, etc, of a given typescript project.

npm install tsviz
import { getModules, getModulesDependencies } from "tsviz";

const tsConfigDir = "path/where/your/tsconfig/lives";

const modules = getModules(tsConfigDir);
...

const modulesDependencies = getModulesDependencies(tsConfigDir);
...
2.0.10

2 years ago

2.0.5

2 years ago

2.0.7

2 years ago

2.0.6

2 years ago

2.0.9

2 years ago

2.0.8

2 years ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.4

2 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.11

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago