Feature request: Show only dependency cycles

Author: crystalfpCreated Feb 24, 2025Updated Jun 10, 2025
Labelsquestion

Context

I need to focus on the cyclic dependencies in a quite complex application. Currently the output of depcruise -T err src show them in textual form, but I think that having them in graphical format is better to find patterns.

Before I was using madge that has options to show graphically only cyclic dependencies (and also orphan modules). Is it possible to have something similar also in depcruise?

Currently I use the following command to have a beautiful chart of dependencies for my application:

depcruise -v -T dot src | dot -T svg | depcruise-wrap-stream-in-html > dependency-graph.html

The application is written in TypeScript + Vue on Windows.

Expected Behavior

Here is an example of cycle chart generated using madge:

Image

I want something similar.

Current Behavior

Maybe the functionality is already there but I was not able to find it.

Possible Solution

Considered alternatives

Currently the only alternative is using depcruise -T err but it is text only or madge --extensions ts,vue --ts-config tsconfig.json -i out.png -c --warning file.vue

Source: sverweij/dependency-cruiser