commands.sh

npm find-dupes

all

Identify duplicate dependencies in `node_modules`.

More info →

Examples (8)

List all duplicate packages within `node_modules`

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

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
made by @shridhargupta | data from tldr-pages