3 <title>npm-restart</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-restart.html">npm-restart</a></h1> <p>Start a package</p>
11 <h2 id="SYNOPSIS">SYNOPSIS</h2>
13 <pre><code>npm.commands.restart(packages, callback)</code></pre>
15 <h2 id="DESCRIPTION">DESCRIPTION</h2>
17 <p>This runs a package's "restart" script, if one was provided.
18 Otherwise it runs package's "stop" script, if one was provided, and then
19 the "start" script.</p>
21 <p>If no version is specified, then it restarts the "active" version.</p>
23 <p>npm can run tests on multiple packages. Just specify multiple packages
24 in the <code>packages</code> parameter.</p>
26 <h2 id="SEE-ALSO">SEE ALSO</h2>
28 <ul><li><a href="../api/npm-start.html">npm-start(3)</a></li><li><a href="../api/npm-stop.html">npm-stop(3)</a></li></ul>
30 <p id="footer">npm-restart — npm@1.3.17</p>
33 var wrapper = document.getElementById("wrapper")
34 var els = Array.prototype.slice.call(wrapper.getElementsByTagName("*"), 0)
35 .filter(function (el) {
36 return el.parentNode === wrapper
37 && el.tagName.match(/H[1-6]/)
41 , toc = document.createElement("ul")
42 toc.innerHTML = els.map(function (el) {
43 var i = el.tagName.charAt(1)
53 out += "<li><a href='#" + el.id + "'>" +
54 ( el.innerText || el.text || el.innerHTML)
59 document.body.appendChild(toc)