3 <title>npm-prune</title>
4 <meta http-equiv="content-type" value="text/html;utf-8">
5 <link rel="stylesheet" type="text/css" href="../../static/style.css">
9 <h1><a href="../api/npm-prune.html">npm-prune</a></h1> <p>Remove extraneous packages</p>
11 <h2 id="SYNOPSIS">SYNOPSIS</h2>
13 <pre><code>npm.commands.prune([packages,] callback)</code></pre>
15 <h2 id="DESCRIPTION">DESCRIPTION</h2>
17 <p>This command removes "extraneous" packages.</p>
19 <p>The first parameter is optional, and it specifies packages to be removed.</p>
21 <p>No packages are specified, then all packages will be checked.</p>
23 <p>Extraneous packages are packages that are not listed on the parent
24 package's dependencies list.</p>
26 <p id="footer">npm-prune — npm@1.3.17</p>
29 var wrapper = document.getElementById("wrapper")
30 var els = Array.prototype.slice.call(wrapper.getElementsByTagName("*"), 0)
31 .filter(function (el) {
32 return el.parentNode === wrapper
33 && el.tagName.match(/H[1-6]/)
37 , toc = document.createElement("ul")
38 toc.innerHTML = els.map(function (el) {
39 var i = el.tagName.charAt(1)
49 out += "<li><a href='#" + el.id + "'>" +
50 ( el.innerText || el.text || el.innerHTML)
55 document.body.appendChild(toc)