mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-11 02:58:26 +00:00
Update cheatsheets
This commit is contained in:
29
tldr/npm-ls
Normal file
29
tldr/npm-ls
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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