deptree

A library to resolve dependency trees

npm install deptree
12 downloads in the last day
141 downloads in the last week
378 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