Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (15 sloc) 279 Bytes

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' ]