mirror of https://github.com/nodejs/node.git
17 lines
849 B
HTML
17 lines
849 B
HTML
<h1><a href="../api/npm-commands.html">npm-commands</a></h1> <p>npm commands</p>
|
|
<h2 id="synopsis">SYNOPSIS</h2>
|
|
<pre><code>npm.commands[<command>](args, callback)
|
|
</code></pre><h2 id="description">DESCRIPTION</h2>
|
|
<p>npm comes with a full set of commands, and each of the commands takes a
|
|
similar set of arguments.</p>
|
|
<p>In general, all commands on the command object take an <strong>array</strong> of positional
|
|
argument <strong>strings</strong>. The last argument to any function is a callback. Some
|
|
commands are special and take other optional arguments.</p>
|
|
<p>All commands have their own man page. See <code>man npm-<command></code> for command-line
|
|
usage, or <code>man 3 npm-<command></code> for programmatic usage.</p>
|
|
<h2 id="see-also">SEE ALSO</h2>
|
|
<ul>
|
|
<li><a href="../misc/npm-index.html">npm-index(7)</a></li>
|
|
</ul>
|
|
|