Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Show namespace dependencies of Clojure project sources as a graph.
Clojure
branch: master
Failed to load latest commit information.
examples First version.
src/leiningen First version.
.gitignore First version.
README.md Clarify summary.
project.clj First version.

README.md

lein-ns-dep-graph

This is a Leiningen plugin to show the namespace dependencies of Clojure project sources as a graph.

Acknowledgements

The plugin itself is tiny, all the hard work is done by clojure.tools.namespace and Rhizome.

Requirements

You will need to have Graphviz installed. Run dot -V at the command line to check.

Installation and Usage

Put [lein-ns-dep-graph "0.1.0-SNAPSHOT"] into the :plugins vector of your :user profile, or if you are on Leiningen 1.x do lein plugin install lein-ns-dep-graph 0.1.0-SNAPSHOT. Then run

lein ns-dep-graph

from a Clojure project directory. This outputs a file ns-dep-graph.png showing the internal namespace dependencies of the project's .clj sources. Dependencies on external namespaces, say clojure.java.io, are not shown.

Examples

Below is the namespace dependency graph obtained for Hiccup.

Hiccup namespace dependency graph

License

Copyright © 2013 Hilverd Reker.

Distributed under the Eclipse Public License, the same as Clojure.

Something went wrong with that request. Please try again.