4 <meta http-equiv="content-type" value="text/html;utf-8">
5 <link rel="stylesheet" type="text/css" href="../style.css">
9 <h1><a href="../doc/restart.html">restart</a></h1> <p>Start a package</p>
11 <h2 id="SYNOPSIS">SYNOPSIS</h2>
13 <pre><code>npm restart <name></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 <h2 id="SEE-ALSO">SEE ALSO</h2>
25 <ul><li><a href="../doc/run-script.html">run-script(1)</a></li><li><a href="../doc/scripts.html">scripts(1)</a></li><li><a href="../doc/test.html">test(1)</a></li><li><a href="../doc/start.html">start(1)</a></li><li><a href="../doc/stop.html">stop(1)</a></li></ul>
27 <p id="footer">restart — npm@1.1.30</p>
30 var wrapper = document.getElementById("wrapper")
31 var els = Array.prototype.slice.call(wrapper.getElementsByTagName("*"), 0)
32 .filter(function (el) {
33 return el.parentNode === wrapper
34 && el.tagName.match(/H[1-6]/)
38 , toc = document.createElement("ul")
39 toc.innerHTML = els.map(function (el) {
40 var i = el.tagName.charAt(1)
50 out += "<li><a href='#" + el.id + "'>" +
51 ( el.innerText || el.text || el.innerHTML)
56 document.body.appendChild(toc)