recursive-deps
v1.1.1
Published
finds all the required dependencies by walking the dependency tree starting from a specified array of source paths
Downloads
8
Readme
recursive-deps
Finds all the required dependencies by walking the dependency tree starting from a specified array of source paths
Installation
npm install recursive-deps
or if you want to use it as a command line tool:
npm install -g recursive-deps
Programmatic Usage
var recursiveDeps = require('recursive-deps');
// with a string path
recursiveDeps('./index.js').then(function(dependencies) {
console.log(dependencies); // ['bluebird', 'fs-promise', ...]
});
// with an array of paths
recursiveDeps(['./index.js']).then(function(dependencies) {
console.log(dependencies); // ['bluebird', 'fs-promise', ...]
});
Command Line Usage
recursive-deps path1 ...