3 <title>npm-run-script</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="../cli/npm-run-script.html">npm-run-script</a></h1> <p>Run arbitrary package scripts</p>
11 <h2 id="SYNOPSIS">SYNOPSIS</h2>
13 <pre><code>npm run-script <script> <name></code></pre>
15 <h2 id="DESCRIPTION">DESCRIPTION</h2>
17 <p>This runs an arbitrary command from a package's "scripts" object.</p>
19 <p>It is used by the test, start, restart, and stop commands, but can be
20 called directly, as well.</p>
22 <h2 id="SEE-ALSO">SEE ALSO</h2>
24 <ul><li><a href="../misc/npm-scripts.html">npm-scripts(7)</a></li><li><a href="../cli/npm-test.html">npm-test(1)</a></li><li><a href="../cli/npm-start.html">npm-start(1)</a></li><li><a href="../cli/npm-restart.html">npm-restart(1)</a></li><li><a href="../cli/npm-stop.html">npm-stop(1)</a></li></ul>
26 <p id="footer">npm-run-script — npm@1.3.17</p>
29 var wrapper = document.getElementById("wrapper")
30 var els = Array.prototype.slice.call(wrapper.getElementsByTagName("*"), 0)
31 .filter(function (el) {
32 return el.parentNode === wrapper
33 && el.tagName.match(/H[1-6]/)
37 , toc = document.createElement("ul")
38 toc.innerHTML = els.map(function (el) {
39 var i = el.tagName.charAt(1)
49 out += "<li><a href='#" + el.id + "'>" +
50 ( el.innerText || el.text || el.innerHTML)
55 document.body.appendChild(toc)