1
0
Fork 0
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:
Martin Blume 2024-11-14 15:43:37 +01:00 committed by GitHub
parent 6ee2b6dee4
commit 8798add933
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 31 additions and 0 deletions

7
pages/common/npm-list.md Normal file
View 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
View 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`