npm i npm-introspect -g
introspect [packages to analyze] [port]
introspect in the root directory of any project you are interested in analyzing. It will parse the package.json and return a visualization of your project's dependencies. If it doesn't find a package.json it will launch with a default package, d3, and output a message in the terminal that it was unable to find a packge.json. If you want to analyze a specific package or packages instead of parsing the package.json you can type those package names like
introspect react react-native and it will visualize those packages and skip the package.json.
introspect [noDev] [port]
Development dependencies like testing frameworks and module bundlers are common across many packages and not necessarily what you are looking for when exploring NPM. To launch npm-introspect without showing the development dependencies use the
-d flag or
introspect [less] [port]
If you want to run introspect with less overhead use the
-less option, or
-l flag introspect will output scores to the terminal and not startup a server.
introspect d3 d3-zoom d3-selection eslint through -p 5000