The data contained in this repository can be downloaded to your computer using one of several clients.
Please see the documentation of your version control software client for more information.

Please select the desired protocol below to get the URL.

This URL has Read-Only access.

Statistics
| Branch: | Revision:

main_repo / deps / npm / html / api / restart.html @ 5aef65a9

History | View | Annotate | Download (1.69 KB)

1
<!doctype html>
2
<html>
3
  <title>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="../api/restart.html">restart</a></h1> <p>Start a package</p>
10

    
11
<h2 id="SYNOPSIS">SYNOPSIS</h2>
12

    
13
<pre><code>npm.commands.restart(packages, callback)</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
<p>npm can run tests on multiple packages. Just specify multiple packages
24
in the <code>packages</code> parameter.</p>
25

    
26
<h2 id="SEE-ALSO">SEE ALSO</h2>
27

    
28
<ul><li><a href="../api/start.html">start(3)</a></li><li><a href="../api/stop.html">stop(3)</a></li></ul>
29
</div>
30
<p id="footer">restart &mdash; npm@1.2.10</p>
31
<script>
32
;(function () {
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]/)
38
        && el.id
39
  })
40
var l = 2
41
  , toc = document.createElement("ul")
42
toc.innerHTML = els.map(function (el) {
43
  var i = el.tagName.charAt(1)
44
    , out = ""
45
  while (i > l) {
46
    out += "<ul>"
47
    l ++
48
  }
49
  while (i < l) {
50
    out += "</ul>"
51
    l --
52
  }
53
  out += "<li><a href='#" + el.id + "'>" +
54
    ( el.innerText || el.text || el.innerHTML)
55
    + "</a>"
56
  return out
57
}).join("\n")
58
toc.id = "toc"
59
document.body.appendChild(toc)
60
})()
61
</script>
62
</body></html>