From 13cd34557449f99ae2c319dde9f20cddcf03ce2b Mon Sep 17 00:00:00 2001 From: SaiTeja-002 <95877599+SaiTeja-002@users.noreply.github.com> Date: Thu, 31 Oct 2024 20:34:22 +0530 Subject: [PATCH] npm-find-dupes: add page (#14468) * npm-find-dupes: add page * Update npm-find-dupes.md --------- Co-authored-by: Wiktor Perskawiec --- pages/common/npm-find-dupes.md | 36 ++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pages/common/npm-find-dupes.md diff --git a/pages/common/npm-find-dupes.md b/pages/common/npm-find-dupes.md new file mode 100644 index 0000000000..43fc6cbe8c --- /dev/null +++ b/pages/common/npm-find-dupes.md @@ -0,0 +1,36 @@ +# npm find-dupes + +> Identify duplicate dependencies in `node_modules`. +> More information: . + +- List all duplicate packages within `node_modules`: + +`npm find-dupes` + +- Include `devDependencies` in duplicate detection: + +`npm find-dupes --include=dev` + +- List all duplicate instances of a specific package in `node-modules`: + +`npm find-dupes {{package_name}}` + +- Exclude optional dependencies from duplicate detection: + +`npm find-dupes --omit=optional` + +- Set the logging level for output: + +`npm find-dupes --loglevel={{silent|error|warn|info|verbose}}` + +- Output duplicate information in JSON format: + +`npm find-dupes --json` + +- Limit duplicate search to specific scopes: + +`npm find-dupes --scope={{@scope1,@scope2}}` + +- Exclude specific scopes from duplicate detection: + +`npm find-dupes --omit-scope={{@scope1,@scope2}}`