Node dependency analyzer
A command line tool that walks through your node_modules and parses all of the package.json files of your packages. It writes all of the package names and package versions to a file.
Usage
$ npm install node-dependency-analyzer --save-dev$ npx node-dependency-analyzer --help Usage: index [options] Options: -V, --version output the version number -n, --node-modules [dir] node_modules dir -o, --output-path [path] File to write analysis to -h, --help output usage information $ npx node-dependency-analyzer
Scenarios where this is helpful
- You want a top-level view of the specific versions of your node packages that you are actually using right now (which is often not exactly what you've declared in package.json unless you are strict about installing explicit versions without ^)
- You are migrating from yarn.lock to package-lock.json and need to re-create your dependency tree.
- You are migrating from package-lock.json to yarn.lock and need to re-create your dependency tree.
License
ISC