Skip to content

Commit 13cd345

Browse files
npm-find-dupes: add page (#14468)
* npm-find-dupes: add page * Update npm-find-dupes.md --------- Co-authored-by: Wiktor Perskawiec <[email protected]>
1 parent 45e758b commit 13cd345

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

pages/common/npm-find-dupes.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# npm find-dupes
2+
3+
> Identify duplicate dependencies in `node_modules`.
4+
> More information: <https://docs.npmjs.com/cli/commands/npm-find-dupes>.
5+
6+
- List all duplicate packages within `node_modules`:
7+
8+
`npm find-dupes`
9+
10+
- Include `devDependencies` in duplicate detection:
11+
12+
`npm find-dupes --include=dev`
13+
14+
- List all duplicate instances of a specific package in `node-modules`:
15+
16+
`npm find-dupes {{package_name}}`
17+
18+
- Exclude optional dependencies from duplicate detection:
19+
20+
`npm find-dupes --omit=optional`
21+
22+
- Set the logging level for output:
23+
24+
`npm find-dupes --loglevel={{silent|error|warn|info|verbose}}`
25+
26+
- Output duplicate information in JSON format:
27+
28+
`npm find-dupes --json`
29+
30+
- Limit duplicate search to specific scopes:
31+
32+
`npm find-dupes --scope={{@scope1,@scope2}}`
33+
34+
- Exclude specific scopes from duplicate detection:
35+
36+
`npm find-dupes --omit-scope={{@scope1,@scope2}}`

0 commit comments

Comments
 (0)