The data contained in this repository can be downloaded to your computer using one of several clients.
Please see the documentation of your version control software client for more information.

Please select the desired protocol below to get the URL.

This URL has Read-Only access.

Statistics
| Branch: | Revision:

main_repo / deps / npm / html / api / uninstall.html @ 5aef65a9

History | View | Annotate | Download (1.54 KB)

1
<!doctype html>
2
<html>
3
  <title>uninstall</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="../api/uninstall.html">uninstall</a></h1> <p>uninstall a package programmatically</p>
10

    
11
<h2 id="SYNOPSIS">SYNOPSIS</h2>
12

    
13
<pre><code>npm.commands.uninstall(packages, callback)</code></pre>
14

    
15
<h2 id="DESCRIPTION">DESCRIPTION</h2>
16

    
17
<p>This acts much the same ways as uninstalling on the command-line.</p>
18

    
19
<p>The &#39;packages&#39; parameter is an array of strings. Each element in the array is
20
the name of a package to be uninstalled.</p>
21

    
22
<p>Finally, &#39;callback&#39; is a function that will be called when all packages have been
23
uninstalled or when an error has been encountered.</p>
24
</div>
25
<p id="footer">uninstall &mdash; npm@1.2.10</p>
26
<script>
27
;(function () {
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]/)
33
        && el.id
34
  })
35
var l = 2
36
  , toc = document.createElement("ul")
37
toc.innerHTML = els.map(function (el) {
38
  var i = el.tagName.charAt(1)
39
    , out = ""
40
  while (i > l) {
41
    out += "<ul>"
42
    l ++
43
  }
44
  while (i < l) {
45
    out += "</ul>"
46
    l --
47
  }
48
  out += "<li><a href='#" + el.id + "'>" +
49
    ( el.innerText || el.text || el.innerHTML)
50
    + "</a>"
51
  return out
52
}).join("\n")
53
toc.id = "toc"
54
document.body.appendChild(toc)
55
})()
56
</script>
57
</body></html>