From 570de023793fde1f8bdd4533b7543204ab6c16e0 Mon Sep 17 00:00:00 2001 From: SaiTeja-002 <95877599+SaiTeja-002@users.noreply.github.com> Date: Wed, 30 Oct 2024 15:24:08 +0530 Subject: [PATCH 1/2] npm-find-dupes: add page --- 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 00000000000000..cb04166562e6fb --- /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}}` From 7def75a1779520b489c6cfb9b2a066613c63db61 Mon Sep 17 00:00:00 2001 From: SaiTeja-002 <95877599+SaiTeja-002@users.noreply.github.com> Date: Thu, 31 Oct 2024 16:38:18 +0530 Subject: [PATCH 2/2] Update npm-find-dupes.md --- pages/common/npm-find-dupes.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/common/npm-find-dupes.md b/pages/common/npm-find-dupes.md index cb04166562e6fb..43fc6cbe8cc689 100644 --- a/pages/common/npm-find-dupes.md +++ b/pages/common/npm-find-dupes.md @@ -29,8 +29,8 @@ - Limit duplicate search to specific scopes: -`npm find-dupes --scope={{@scope1, @scope2}}` +`npm find-dupes --scope={{@scope1,@scope2}}` - Exclude specific scopes from duplicate detection: -`npm find-dupes --omit-scope={{@scope1, @scope2}}` +`npm find-dupes --omit-scope={{@scope1,@scope2}}`