Missing inspector for npm packages.
npm install -g nls
nls - Missing inspector for npm packages.
Usage
$ nls List available npm scripts
$ nls deps List dependencies table (d for short)
$ nls view [prop-path] Extract info from package.json (v for short)
$ nls read <package-name> Print readme file from a dependency (r for short)
$ nls why <package-name> Identify why a package has been installed (w for short)
Options
-d, --dir Target directory
-h, --help Output usage information
-v, --version Output the version number
Examples
# List npm scripts in current dir
$ nls
# List who depend upon package 'chalk'
$ nls why chalk
# Print value of "engines.node" from package.json
$ nls v engines.node
- yarn-why - Identifies why a package has been installed (with
yarn.lock
) - npm-why - Identifies why a package has been installed (with
package-lock.json
)
MIT @ Amio