UNPKG

npm

Version:

A package manager for node

11 lines (9 loc) 543 B
<h1><a href="../api/npm-prune.html">npm-prune</a></h1> <p>Remove extraneous packages</p> <h2 id="synopsis">SYNOPSIS</h2> <pre><code>npm.commands.prune([packages,] callback) </code></pre><h2 id="description">DESCRIPTION</h2> <p>This command removes &quot;extraneous&quot; packages.</p> <p>The first parameter is optional, and it specifies packages to be removed.</p> <p>No packages are specified, then all packages will be checked.</p> <p>Extraneous packages are packages that are not listed on the parent package&#39;s dependencies list.</p>