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 / commands.html @ d46ebffb

History | View | Annotate | Download (1.77 KB)

1
<!doctype html>
2
<html>
3
  <title>commands</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/commands.html">commands</a></h1> <p>npm commands</p>
10

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

    
13
<pre><code>npm.commands[&lt;command&gt;](args, callback)</code></pre>
14

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

    
17
<p>npm comes with a full set of commands, and each of the commands takes a
18
similar set of arguments.</p>
19

    
20
<p>In general, all commands on the command object take an <strong>array</strong> of positional
21
argument <strong>strings</strong>. The last argument to any function is a callback. Some
22
commands are special and take other optional arguments.</p>
23

    
24
<p>All commands have their own man page. See <code>man npm-&lt;command&gt;</code> for command-line
25
usage, or <code>man 3 npm-&lt;command&gt;</code> for programmatic usage.</p>
26

    
27
<h2 id="SEE-ALSO">SEE ALSO</h2>
28

    
29
<ul><li><a href="../doc/index.html">index(1)</a></li></ul>
30
</div>
31
<p id="footer">commands &mdash; npm@1.2.17</p>
32
<script>
33
;(function () {
34
var wrapper = document.getElementById("wrapper")
35
var els = Array.prototype.slice.call(wrapper.getElementsByTagName("*"), 0)
36
  .filter(function (el) {
37
    return el.parentNode === wrapper
38
        && el.tagName.match(/H[1-6]/)
39
        && el.id
40
  })
41
var l = 2
42
  , toc = document.createElement("ul")
43
toc.innerHTML = els.map(function (el) {
44
  var i = el.tagName.charAt(1)
45
    , out = ""
46
  while (i > l) {
47
    out += "<ul>"
48
    l ++
49
  }
50
  while (i < l) {
51
    out += "</ul>"
52
    l --
53
  }
54
  out += "<li><a href='#" + el.id + "'>" +
55
    ( el.innerText || el.text || el.innerHTML)
56
    + "</a>"
57
  return out
58
}).join("\n")
59
toc.id = "toc"
60
document.body.appendChild(toc)
61
})()
62
</script>
63
</body></html>