deptree

A library to resolve dependency trees

npm install deptree
21 downloads in the last day
333 downloads in the last month

DepTree

Installation

npm install deptree

Usage

var DepTree = require('deptree');
var depTree = new DepTree();
depTree.add('a');
depTree.add('b', ['c', 'a']);
depTree.add('d', 'b');

var resolve = depTree.resolve();
//resolve == [ 'a', 'c', 'b', 'd' ]
npm loves you