diff --git a/pages/common/npm-list.md b/pages/common/npm-list.md new file mode 100644 index 0000000000..392f6bebba --- /dev/null +++ b/pages/common/npm-list.md @@ -0,0 +1,7 @@ +# npm list + +> This command is an alias of `npm ls`. + +- View documentation for the original command: + +`tldr npm ls` diff --git a/pages/common/npm-ls.md b/pages/common/npm-ls.md new file mode 100644 index 0000000000..57c7529fff --- /dev/null +++ b/pages/common/npm-ls.md @@ -0,0 +1,24 @@ +# npm ls + +> Print installed packages to `stdout`. +> More information: . + +- 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`