0.0.5 • Published 8 years ago

@nathanfaucett/dependency_tree v0.0.5

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

DependencyTree

commonjs style dependency tree parser

var DependencyTree = require("@nathanfaucett/dependency_tree");


var tree = DependencyTree.create("./path/to/index.js");


tree.parse();

tree.chunks.forEach(function(chunk) {
    console.log(chunk.fullPath);

    chunk.dependencies.forEach(function(dependency) {
        console.log("\t" + dependency.fullPath);
    });
});