npm: Upgrade to 1.3.19
[platform/upstream/nodejs.git] / deps / npm / html / doc / cli / npm-restart.html
1 <!doctype html>
2 <html>
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">
6
7   <body>
8     <div id="wrapper">
9 <h1><a href="../cli/npm-restart.html">npm-restart</a></h1> <p>Start a package</p>
10
11 <h2 id="SYNOPSIS">SYNOPSIS</h2>
12
13 <pre><code>npm restart &lt;name&gt;</code></pre>
14
15 <h2 id="DESCRIPTION">DESCRIPTION</h2>
16
17 <p>This runs a package&#39;s &quot;restart&quot; script, if one was provided.
18 Otherwise it runs package&#39;s &quot;stop&quot; script, if one was provided, and then
19 the &quot;start&quot; script.</p>
20
21 <p>If no version is specified, then it restarts the &quot;active&quot; version.</p>
22
23 <h2 id="SEE-ALSO">SEE ALSO</h2>
24
25 <ul><li><a href="../cli/npm-run-script.html">npm-run-script(1)</a></li><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-stop.html">npm-stop(1)</a></li></ul>
26 </div>
27 <p id="footer">npm-restart &mdash; npm@1.3.19</p>
28 <script>
29 ;(function () {
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]/)
35         && el.id
36   })
37 var l = 2
38   , toc = document.createElement("ul")
39 toc.innerHTML = els.map(function (el) {
40   var i = el.tagName.charAt(1)
41     , out = ""
42   while (i > l) {
43     out += "<ul>"
44     l ++
45   }
46   while (i < l) {
47     out += "</ul>"
48     l --
49   }
50   out += "<li><a href='#" + el.id + "'>" +
51     ( el.innerText || el.text || el.innerHTML)
52     + "</a>"
53   return out
54 }).join("\n")
55 toc.id = "toc"
56 document.body.appendChild(toc)
57 })()
58 </script>