mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-03-28 21:16:20 +01:00
npm-ls: add page (#14769)
* 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>
This commit is contained in:
parent
6ee2b6dee4
commit
8798add933
2 changed files with 31 additions and 0 deletions
7
pages/common/npm-list.md
Normal file
7
pages/common/npm-list.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
# npm list
|
||||
|
||||
> This command is an alias of `npm ls`.
|
||||
|
||||
- View documentation for the original command:
|
||||
|
||||
`tldr npm ls`
|
24
pages/common/npm-ls.md
Normal file
24
pages/common/npm-ls.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# 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`
|
Loading…
Add table
Reference in a new issue