Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/html/doc/cli/npm-run-script.html')
-rw-r--r--deps/npm/html/doc/cli/npm-run-script.html9
1 files changed, 6 insertions, 3 deletions
diff --git a/deps/npm/html/doc/cli/npm-run-script.html b/deps/npm/html/doc/cli/npm-run-script.html
index 13d2d43053e..c602aeb6985 100644
--- a/deps/npm/html/doc/cli/npm-run-script.html
+++ b/deps/npm/html/doc/cli/npm-run-script.html
@@ -3,6 +3,7 @@
<title>npm-run-script</title>
<meta http-equiv="content-type" value="text/html;utf-8">
<link rel="stylesheet" type="text/css" href="../../static/style.css">
+ <link rel="canonical" href="https://www.npmjs.org/doc/cli/npm-run-script.html">
<script async=true src="../../static/toc.js"></script>
<body>
@@ -12,11 +13,13 @@
<h2 id="SYNOPSIS">SYNOPSIS</h2>
-<pre><code>npm run-script &lt;script&gt; &lt;name&gt;</code></pre>
+<pre><code>npm run-script [&lt;pkg&gt;] &lt;command&gt;</code></pre>
<h2 id="DESCRIPTION">DESCRIPTION</h2>
-<p>This runs an arbitrary command from a package&#39;s &quot;scripts&quot; object.</p>
+<p>This runs an arbitrary command from a package&#39;s <code>&quot;scripts&quot;</code> object.
+If no package name is provided, it will search for a <code>package.json</code>
+in the current folder and use its <code>&quot;scripts&quot;</code> object.</p>
<p>It is used by the test, start, restart, and stop commands, but can be
called directly, as well.</p>
@@ -35,5 +38,5 @@ called directly, as well.</p>
<tr><td style="width:60px;height:10px;background:rgb(237,127,127)" colspan=6>&nbsp;</td><td colspan=10 style="width:10px;height:10px;background:rgb(237,127,127)">&nbsp;</td></tr>
<tr><td colspan=5 style="width:50px;height:10px;background:#fff">&nbsp;</td><td style="width:40px;height:10px;background:rgb(237,127,127)" colspan=4>&nbsp;</td><td style="width:90px;height:10px;background:#fff" colspan=9>&nbsp;</td></tr>
</table>
-<p id="footer">npm-run-script &mdash; npm@1.4.6</p>
+<p id="footer">npm-run-script &mdash; npm@1.4.8</p>