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 / start.html @ 5aef65a9

History | View | Annotate | Download (1.34 KB)

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

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

    
13
<pre><code>npm.commands.start(packages, callback)</code></pre>
14

    
15
<h2 id="DESCRIPTION">DESCRIPTION</h2>
16

    
17
<p>This runs a package&#39;s &quot;start&quot; script, if one was provided.</p>
18

    
19
<p>npm can run tests on multiple packages. Just specify multiple packages
20
in the <code>packages</code> parameter.</p>
21
</div>
22
<p id="footer">start &mdash; npm@1.2.10</p>
23
<script>
24
;(function () {
25
var wrapper = document.getElementById("wrapper")
26
var els = Array.prototype.slice.call(wrapper.getElementsByTagName("*"), 0)
27
  .filter(function (el) {
28
    return el.parentNode === wrapper
29
        && el.tagName.match(/H[1-6]/)
30
        && el.id
31
  })
32
var l = 2
33
  , toc = document.createElement("ul")
34
toc.innerHTML = els.map(function (el) {
35
  var i = el.tagName.charAt(1)
36
    , out = ""
37
  while (i > l) {
38
    out += "<ul>"
39
    l ++
40
  }
41
  while (i < l) {
42
    out += "</ul>"
43
    l --
44
  }
45
  out += "<li><a href='#" + el.id + "'>" +
46
    ( el.innerText || el.text || el.innerHTML)
47
    + "</a>"
48
  return out
49
}).join("\n")
50
toc.id = "toc"
51
document.body.appendChild(toc)
52
})()
53
</script>
54
</body></html>