pahen/node-madge — pull request #1 by Couto (2012-05-21 14:56:25+00:00)
Title: Ability to read from a config file and to customize colors.

Given a `JSON` file using the `--config` parameter, the madge binary
will read and parse the JSON file and use the given options.
e.g.:

{
"format": "amd",
"image": "dependency_map.png"
"fontFace": "Helvetica",
"fontSize": "14px",
"imageColors": {
"noDependencies" : "#0000ff",
"dependencies" : "#00ff00",
"circular" : "#bada55",
"arrows" : "#bada55",
"bdcolor": "#ffffff"
}
}

this is the same than the following command (except the customization
part):

madge -f amd -i dependency_map.png src_folder/

except that now, the command becomes:

madge --config config/madge.json src_folder/

At the same time, throught the file, becomes possible to customize the
output colors, font and font size.

It's the first time, I'm using the graphviz, so I couldn't find a way on how to
turn on the antialiasing option, but that would also be a really nice feature.

This request comes at the fact, that I really wanted to customize the colors,
without resorting to a graphic editing software.

Thanks for this awesome package, it's probably the most useful thing after
modules in Javascript! ;)