Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A javascript/node.js library to resolve dependency trees

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 HISTORY.md
Octocat-spinner-32 README.md
Octocat-spinner-32 index.js
Octocat-spinner-32 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' ]
Something went wrong with that request. Please try again.