1.1.1 • Published 5 years ago

recursive-deps v1.1.1

Weekly downloads
11
License
MIT
Repository
github
Last release
5 years ago

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 ...