f32d66d3d2eab4721e1e4c507d53202d1e76e518
[platform/upstream/nodejs.git] / deps / npm / html / doc / cli / repo.html
1 <!doctype html>
2 <html>
3   <title>repo</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-repo.html">npm-repo</a></h1> <p>Open package repository page in the browser</p>
10
11 <h2 id="SYNOPSIS">SYNOPSIS</h2>
12
13 <pre><code>npm repo &lt;pkgname&gt;</code></pre>
14
15 <h2 id="DESCRIPTION">DESCRIPTION</h2>
16
17 <p>This command tries to guess at the likely location of a package&#39;s
18 repository URL, and then tries to open it using the <code>--browser</code>
19 config param.</p>
20
21 <h2 id="CONFIGURATION">CONFIGURATION</h2>
22
23 <h3 id="browser">browser</h3>
24
25 <ul><li>Default: OS X: <code>&quot;open&quot;</code>, Windows: <code>&quot;start&quot;</code>, Others: <code>&quot;xdg-open&quot;</code></li><li>Type: String</li></ul>
26
27 <p>The browser that is called by the <code>npm repo</code> command to open websites.</p>
28
29 <h2 id="SEE-ALSO">SEE ALSO</h2>
30
31 <ul><li><a href="../cli/npm-docs.html">npm-docs(1)</a></li><li><a href="../cli/npm-config.html">npm-config(1)</a></li></ul>
32 </div>
33 <p id="footer">repo &mdash; npm@1.3.15</p>
34 <script>
35 ;(function () {
36 var wrapper = document.getElementById("wrapper")
37 var els = Array.prototype.slice.call(wrapper.getElementsByTagName("*"), 0)
38   .filter(function (el) {
39     return el.parentNode === wrapper
40         && el.tagName.match(/H[1-6]/)
41         && el.id
42   })
43 var l = 2
44   , toc = document.createElement("ul")
45 toc.innerHTML = els.map(function (el) {
46   var i = el.tagName.charAt(1)
47     , out = ""
48   while (i > l) {
49     out += "<ul>"
50     l ++
51   }
52   while (i < l) {
53     out += "</ul>"
54     l --
55   }
56   out += "<li><a href='#" + el.id + "'>" +
57     ( el.innerText || el.text || el.innerHTML)
58     + "</a>"
59   return out
60 }).join("\n")
61 toc.id = "toc"
62 document.body.appendChild(toc)
63 })()
64 </script>