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:
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`
|
Reference in New Issue
Block a user