pubviz 1.1.0+1 pubviz: ^1.1.0+1 copied to clipboard
Visualize package dependencies in your Dart project
#pubviz
Visualize package dependencies in your Dart project #
- Make sure you run
pub install
orpub update
in your target project directory. - Run
pubviz
passing in the target project directory as the only argument./bin/pubviz.dart ~/pubviz/
- Notice the pretty output:
digraph G {
path [label="path
0.6.5",shape=box,margin="0.25,0.15",group=primary];
pubviz [label="pubviz
0.1.0-dev",fontsize=16,style=bold,shape=box,margin="0.25,0.15",group=primary];
pubviz -> path [label=">=0.6.5",fontcolor=gray,penwidth=2];
pubviz -> unmodifiable_collection [label=">=0.6.5",fontcolor=gray,penwidth=2];
pubviz -> yaml [label=">=0.6.5",fontcolor=gray,penwidth=2];
unmodifiable_collection [label="unmodifiable_collection
0.6.5",shape=box,margin="0.25,0.15",group=primary];
yaml [label="yaml
0.6.5",shape=box,margin="0.25,0.15",group=primary];
}
Direct the ouput to a dot
file: ./bin/pubviz.dart ~/some_dart_project/ > some_dot_file.dot
and use GraphViz to generate a PNG.