mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-23 07:51:36 +00:00
Update cheatsheets
This commit is contained in:
16
tldr/npm-ls
16
tldr/npm-ls
@@ -8,22 +8,26 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Print installed packages to `stdout`.
|
||||
> More information: <https://docs.npmjs.com/cli/npm-ls>.
|
||||
|
||||
- Print all versions of direct dependencies to `stdout`:
|
||||
- Print all versions of direct dependencies in the current project to `stdout`:
|
||||
|
||||
`npm ls`
|
||||
`npm {{[ls|list]}}`
|
||||
|
||||
- Print all installed packages including peer dependencies:
|
||||
|
||||
`npm ls {{[-a|--all]}}`
|
||||
`npm {{[ls|list]}} {{[-a|--all]}}`
|
||||
|
||||
- Print all globally installed packages:
|
||||
|
||||
`npm {{[ls|list]}} {{[-g|--global]}}`
|
||||
|
||||
- Print dependencies with extended information:
|
||||
|
||||
`npm ls {{[-l|--long]}}`
|
||||
`npm {{[ls|list]}} {{[-l|--long]}}`
|
||||
|
||||
- Print dependencies in parseable format:
|
||||
|
||||
`npm ls {{[-p|--parseable]}}`
|
||||
`npm {{[ls|list]}} {{[-p|--parseable]}}`
|
||||
|
||||
- Print dependencies in JSON format:
|
||||
|
||||
`npm ls --json`
|
||||
`npm {{[ls|list]}} --json`
|
||||
|
||||
Reference in New Issue
Block a user