mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
npm-find-dupes: add page (#14468)
* npm-find-dupes: add page * Update npm-find-dupes.md --------- Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
This commit is contained in:
parent
45e758b821
commit
13cd345574
1 changed files with 36 additions and 0 deletions
36
pages/common/npm-find-dupes.md
Normal file
36
pages/common/npm-find-dupes.md
Normal file
|
@ -0,0 +1,36 @@
|
|||
# npm find-dupes
|
||||
|
||||
> Identify duplicate dependencies in `node_modules`.
|
||||
> More information: <https://docs.npmjs.com/cli/commands/npm-find-dupes>.
|
||||
|
||||
- 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}}`
|
Loading…
Add table
Reference in a new issue