3 <title>npm-uninstall</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-uninstall.html">npm-uninstall</a></h1> <p>uninstall a package programmatically</p>
11 <h2 id="SYNOPSIS">SYNOPSIS</h2>
13 <pre><code>npm.commands.uninstall(packages, callback)</code></pre>
15 <h2 id="DESCRIPTION">DESCRIPTION</h2>
17 <p>This acts much the same ways as uninstalling on the command-line.</p>
19 <p>The 'packages' parameter is an array of strings. Each element in the array is
20 the name of a package to be uninstalled.</p>
22 <p>Finally, 'callback' is a function that will be called when all packages have been
23 uninstalled or when an error has been encountered.</p>
25 <p id="footer">npm-uninstall — npm@1.3.19</p>
28 var wrapper = document.getElementById("wrapper")
29 var els = Array.prototype.slice.call(wrapper.getElementsByTagName("*"), 0)
30 .filter(function (el) {
31 return el.parentNode === wrapper
32 && el.tagName.match(/H[1-6]/)
36 , toc = document.createElement("ul")
37 toc.innerHTML = els.map(function (el) {
38 var i = el.tagName.charAt(1)
48 out += "<li><a href='#" + el.id + "'>" +
49 ( el.innerText || el.text || el.innerHTML)
54 document.body.appendChild(toc)