mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-03 23:43:37 +00:00
30 lines
567 B
Plaintext
30 lines
567 B
Plaintext
---
|
|
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 {{[-a|--all]}}`
|
|
|
|
- Print dependencies with extended information:
|
|
|
|
`npm ls {{[-l|--long]}}`
|
|
|
|
- Print dependencies in parseable format:
|
|
|
|
`npm ls {{[-p|--parseable]}}`
|
|
|
|
- Print dependencies in JSON format:
|
|
|
|
`npm ls --json`
|