node-dependency-analyzer

1.1.0 • Public • Published

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 (default: "node_modules")
  -o, --output-path [path]  File to write analysis to (default: "results.json")
  -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

Readme

Keywords

none

Package Sidebar

Install

npm i node-dependency-analyzer

Weekly Downloads

1

Version

1.1.0

License

ISC

Unpacked Size

4.12 kB

Total Files

3

Last publish

Collaborators

  • luisnaranjo733