dep-ls
Returns an event emitter that will emit a dependency
event with
every dependency of a given project. It does this recursively.
The following might emit every dependency of your current project:
var depLS = require("dep-ls");
var emitter = depLS(__dirname);
emitter.on('dependency', function(dir){
console.log(dir);
});