diff --git a/pages/common/npm-ls.md b/pages/common/npm-ls.md index b735218c17..e873c0f2da 100644 --- a/pages/common/npm-ls.md +++ b/pages/common/npm-ls.md @@ -3,22 +3,26 @@ > Print installed packages to `stdout`. > More information: . -- 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`