npm: Upgrade to 1.3.19
[platform/upstream/nodejs.git] / deps / npm / html / doc / cli / npm-prune.html
1 <!doctype html>
2 <html>
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">
6
7   <body>
8     <div id="wrapper">
9 <h1><a href="../cli/npm-prune.html">npm-prune</a></h1> <p>Remove extraneous packages</p>
10
11 <h2 id="SYNOPSIS">SYNOPSIS</h2>
12
13 <pre><code>npm prune [&lt;name&gt; [&lt;name ...]]
14 npm prune [&lt;name&gt; [&lt;name ...]] [--production]</code></pre>
15
16 <h2 id="DESCRIPTION">DESCRIPTION</h2>
17
18 <p>This command removes &quot;extraneous&quot; packages.  If a package name is
19 provided, then only packages matching one of the supplied names are
20 removed.</p>
21
22 <p>Extraneous packages are packages that are not listed on the parent
23 package&#39;s dependencies list.</p>
24
25 <p>If the <code>--production</code> flag is specified, this command will remove the
26 packages specified in your <code>devDependencies</code>.</p>
27
28 <h2 id="SEE-ALSO">SEE ALSO</h2>
29
30 <ul><li><a href="../cli/npm-rm.html">npm-rm(1)</a></li><li><a href="../files/npm-folders.html">npm-folders(5)</a></li><li><a href="../cli/npm-ls.html">npm-ls(1)</a></li></ul>
31 </div>
32 <p id="footer">npm-prune &mdash; npm@1.3.19</p>
33 <script>
34 ;(function () {
35 var wrapper = document.getElementById("wrapper")
36 var els = Array.prototype.slice.call(wrapper.getElementsByTagName("*"), 0)
37   .filter(function (el) {
38     return el.parentNode === wrapper
39         && el.tagName.match(/H[1-6]/)
40         && el.id
41   })
42 var l = 2
43   , toc = document.createElement("ul")
44 toc.innerHTML = els.map(function (el) {
45   var i = el.tagName.charAt(1)
46     , out = ""
47   while (i > l) {
48     out += "<ul>"
49     l ++
50   }
51   while (i < l) {
52     out += "</ul>"
53     l --
54   }
55   out += "<li><a href='#" + el.id + "'>" +
56     ( el.innerText || el.text || el.innerHTML)
57     + "</a>"
58   return out
59 }).join("\n")
60 toc.id = "toc"
61 document.body.appendChild(toc)
62 })()
63 </script>