1 npm-dedupe(1) -- Reduce duplication
2 ===================================
6 npm dedupe [package names...]
7 npm ddp [package names...]
9 aliases: find-dupes, ddp
13 Searches the local package tree and attempts to simplify the overall
14 structure by moving dependencies further up the tree, where they can
15 be more effectively shared by multiple dependent packages.
17 For example, consider this dependency graph:
20 +-- b <-- depends on c@1.0.x
22 `-- d <-- depends on c@~1.0.9
25 In this case, `npm-dedupe(1)` will transform the tree to:
32 Because of the hierarchical nature of node's module lookup, b and d
33 will both get their dependency met by the single c package at the root
36 If a suitable version exists at the target location in the tree
37 already, then it will be left untouched, but the other duplicates will
40 If no suitable version can be found, then a warning is printed, and
43 If any arguments are supplied, then they are filters, and only the
44 named packages will be touched.
46 Note that this operation transforms the dependency tree, and may
47 result in packages getting updated versions, perhaps from the npm
50 This feature is experimental, and may change in future versions.
52 The `--tag` argument will apply to all of the affected dependencies. If a
53 tag with the given name exists, the tagged version is preferred over newer