From 8798add9331ecc2f8a48c9dfb425877e8fb85244 Mon Sep 17 00:00:00 2001 From: Martin Blume Date: Thu, 14 Nov 2024 15:43:37 +0100 Subject: [PATCH] npm-ls: add page (#14769) * npm-ls: add page * Improve wording * Add alias page * Fix typo * Fix styling of description --------- Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Co-authored-by: Wiktor Perskawiec --- pages/common/npm-list.md | 7 +++++++ pages/common/npm-ls.md | 24 ++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 pages/common/npm-list.md create mode 100644 pages/common/npm-ls.md 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`