mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-21 22:22:07 +02:00

* npm-ls: add page * Improve wording * Add alias page * Fix typo * Fix styling of description --------- Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
24 lines
447 B
Markdown
24 lines
447 B
Markdown
# npm ls
|
|
|
|
> Print installed packages to `stdout`.
|
|
> More information: <https://docs.npmjs.com/cli/commands/npm-ls>.
|
|
|
|
- Print all versions of direct dependencies to `stdout`:
|
|
|
|
`npm ls`
|
|
|
|
- Print all installed packages including peer dependencies:
|
|
|
|
`npm ls --all`
|
|
|
|
- Print dependencies with extended information:
|
|
|
|
`npm ls --long`
|
|
|
|
- Print dependencies in parseable format:
|
|
|
|
`npm ls --parseable`
|
|
|
|
- Print dependencies in JSON format:
|
|
|
|
`npm ls --json`
|