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

History | View | Annotate | Download (1.6 KB)

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

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

    
13
<pre><code>  npm test &lt;name&gt;</code></pre>
14

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

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

    
19
<p>To run tests as a condition of installation, set the <code>npat</code> config to
20
true.</p>
21

    
22
<h2 id="SEE-ALSO">SEE ALSO</h2>
23

    
24
<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/start.html">start(1)</a></li><li><a href="../doc/restart.html">restart(1)</a></li><li><a href="../doc/stop.html">stop(1)</a></li></ul>
25
</div>
26
<p id="footer">test &mdash; npm@1.2.10</p>
27
<script>
28
;(function () {
29
var wrapper = document.getElementById("wrapper")
30
var els = Array.prototype.slice.call(wrapper.getElementsByTagName("*"), 0)
31
  .filter(function (el) {
32
    return el.parentNode === wrapper
33
        && el.tagName.match(/H[1-6]/)
34
        && el.id
35
  })
36
var l = 2
37
  , toc = document.createElement("ul")
38
toc.innerHTML = els.map(function (el) {
39
  var i = el.tagName.charAt(1)
40
    , out = ""
41
  while (i > l) {
42
    out += "<ul>"
43
    l ++
44
  }
45
  while (i < l) {
46
    out += "</ul>"
47
    l --
48
  }
49
  out += "<li><a href='#" + el.id + "'>" +
50
    ( el.innerText || el.text || el.innerHTML)
51
    + "</a>"
52
  return out
53
}).join("\n")
54
toc.id = "toc"
55
document.body.appendChild(toc)
56
})()
57
</script>
58
</body></html>