3 <title>npm-commands</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-commands.html">npm-commands</a></h1> <p>npm commands</p>
11 <h2 id="SYNOPSIS">SYNOPSIS</h2>
13 <pre><code>npm.commands[<command>](args, callback)</code></pre>
15 <h2 id="DESCRIPTION">DESCRIPTION</h2>
17 <p>npm comes with a full set of commands, and each of the commands takes a
18 similar set of arguments.</p>
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>
24 <p>All commands have their own man page. See <code>man npm-<command></code> for command-line
25 usage, or <code>man 3 npm-<command></code> for programmatic usage.</p>
27 <h2 id="SEE-ALSO">SEE ALSO</h2>
29 <ul><li><a href="../misc/npm-index.html">npm-index(7)</a></li></ul>
31 <p id="footer">npm-commands — npm@1.3.17</p>
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]/)
42 , toc = document.createElement("ul")
43 toc.innerHTML = els.map(function (el) {
44 var i = el.tagName.charAt(1)
54 out += "<li><a href='#" + el.id + "'>" +
55 ( el.innerText || el.text || el.innerHTML)
60 document.body.appendChild(toc)