CmdID

CmdID / Commands

npm-prune

Remove extraneous packages from node_modules. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Remove extraneous packages from node_modules. Note: Extraneous packages are those present in the node_modules folder that are not listed as any package's dependency list.

Remove all extraneous packages not listed in dependencies

npm pruneIdentify

Remove extraneous packages and devDependencies (useful for production builds)

npm prune --productionIdentify

Simulate pruning, showing what would be removed without making any changes

npm prune --dry-runIdentify

Output the changes as JSON

npm prune --jsonIdentify

Remove specific packages by name

npm prune package_nameIdentify