neuron-graph
v1.0.2
Published
Dependency Handler, Graph Parser and Simplifier for CommonJs Modules
Downloads
22
Readme
neuron-graph
Generate neuron config graph from package/shrinkwrap.
Install
$ npm install neuron-graph --save
Usage
var graph = require('neuron-graph');
graph(pkg, {
shrinkwrap: shrinkwrap_object_if_already_have_one,
dependencyKeys: ['dependencies', 'asyncDependencies']
}, function(err, g) {
});
Options
cwd {string=}
Current work directory for search 'cortex-shrinkwrap.json'.
built_root {string}
Directory where to find installed packages.
shrinkwrap {Object=}
Shrinkwrap object
dependencyKeys {Array.=}
Dependencies will parse during the processing. Default is ['dependencies', 'asyncDependencies']
stable_only {boolean=}
Pass to cortex-shrinkwrap. Default is false
.
ignore_shrink_file {boolean=}
Always regenerate shrinkwrap object even cortex-shrinkwrap.json
exists. Default is false
.
Licence
MIT