Install
$ npm install gen-graph --save
Usage
var graph = ; var conf = ; conf = ; conf = ;
Generated object will contains '_' property with the root tree's name and version.
var conf = ; // compressed conf will be 0: 100" ], _: { "json@100": 0 }} conf = graph({ name: "json", version: "100"}, { compress: false}); // uncompressed conf will be{ 0: [ "json@100" ], _: { "json@100": 0 }}
So root node can be located fast.
Options
edge_keys {Array=}
Keys will be traveled as edges in graph, like 'devDependencies'. Default is ['dependencies', 'asyncDependencies']
compress {boolean=}
Whether output name in the graph node. Default is true
.
Licence
MIT