LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

npm-explain

shows why a package is installed

TLDR

Explain why package installed
$ npm explain [package-name]
copy
Explain with JSON output
$ npm explain [package-name] --json
copy
Explain specific version
$ npm explain [package@version]
copy

SYNOPSIS

npm explain [package]

DESCRIPTION

npm explain shows why a package is installed. Displays dependency chain.The command traces dependency tree. Shows all paths to the package.

PARAMETERS

PACKAGE

Package to explain.
--json
JSON output format.
--help
Display help information.

INSTALL

sudo pacman -S npm
copy
sudo apk add npm
copy
brew install npm
copy

CAVEATS

Alias: npm why. Shows all dependency paths. Requires installed package.

HISTORY

npm explain was added to help understand dependency relationships in complex projects.

SEE ALSO

npm(1), npm-ls(1), npm-why(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid