A javascript/node.js library to resolve dependency trees
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
HISTORY.md
README.md
index.js
package.json

README.md

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