Skip to content

Instantly share code, notes, and snippets.

@corburn
Created October 15, 2014 20:46
Show Gist options
  • Save corburn/4e81840ff847b3d40015 to your computer and use it in GitHub Desktop.
Save corburn/4e81840ff847b3d40015 to your computer and use it in GitHub Desktop.
Graph NodeJS
#!/usr/bin/env zsh
layouts=(dot neato fdp sfdp twopi circo)
for layout in $layouts; do
filename="graph.$layout.png"
echo $filename
madge --exclude '^node_modules|templates|^test' --layout $layout --image $filename "$1"
#convert $filename -fuzz 30% -fill \#FFFFFF -opaque \#000000 filtered.$filename
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment