neuron-graph

v1.0.2
Dependency Handler, Graph Parser and Simplifier for CommonJs Modules
neuron-graph graph graph-isomorphism handler parser dependencies commonjs dependency-graph

neuron-graph NPM version Build Status Dependency Status

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

npm i neuron-graph

Metadata

  • MIT
  • >=0.10.0
  • kael
  • released 8/25/2015

Downloads