-
-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLI tool? #149
Comments
Is being done the rendering server side? If so, it could be done with just a single |
This is not something I've designed for so, no, there's no simple way to render graphs on the server at the moment. It might be possible to generate graphs with The core SVG is created by generating a DOT document and running that through graphviz. So another option would be to write a script to do something similar and then call into one of the many availalbe language APIs for graphviz to generate the diagram. But NPMGraph also does direct DOM manipulation of the SVG graph for selection, colorizing, and other other view-related behavior, so this approach wouldn't capture those aspects of the graph. |
@piranna Have you looked at https://www.npmjs.com/package/madge? 'Would be curious to hear your thoughts on how that tool does/doesn't overlap with what a headless |
Yes, in fact I'm using it :-) It generates the graph at modules level, not at packages level. For me it's useful to detect circular references in complex code bases that can lead to bugs. |
FWIW, I've just published the first version of the |
Is there any way to use this as a headless CLI tool? Provide a
package.json
file as argument, and get the SVG content in stdout.The text was updated successfully, but these errors were encountered: