Merge remote-tracking branch 'upstream/v0.10'
[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;
14 npm repo (with no args in a package dir)</code></pre>
15
16 <h2 id="DESCRIPTION">DESCRIPTION</h2>
17
18 <p>This command tries to guess at the likely location of a package&#39;s
19 repository URL, and then tries to open it using the <code>--browser</code>
20 config param. If no package name is provided, it will search for
21 a <code>package.json</code> in the current folder and use the <code>name</code> property.</p>
22
23 <h2 id="CONFIGURATION">CONFIGURATION</h2>
24
25 <h3 id="browser">browser</h3>
26
27 <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>
28
29 <p>The browser that is called by the <code>npm repo</code> command to open websites.</p>
30
31 <h2 id="SEE-ALSO">SEE ALSO</h2>
32
33 <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>
34 </div>
35 <p id="footer">repo &mdash; npm@1.3.22</p>
36 <script>
37 ;(function () {
38 var wrapper = document.getElementById("wrapper")
39 var els = Array.prototype.slice.call(wrapper.getElementsByTagName("*"), 0)
40   .filter(function (el) {
41     return el.parentNode === wrapper
42         && el.tagName.match(/H[1-6]/)
43         && el.id
44   })
45 var l = 2
46   , toc = document.createElement("ul")
47 toc.innerHTML = els.map(function (el) {
48   var i = el.tagName.charAt(1)
49     , out = ""
50   while (i > l) {
51     out += "<ul>"
52     l ++
53   }
54   while (i < l) {
55     out += "</ul>"
56     l --
57   }
58   out += "<li><a href='#" + el.id + "'>" +
59     ( el.innerText || el.text || el.innerHTML)
60     + "</a>"
61   return out
62 }).join("\n")
63 toc.id = "toc"
64 document.body.appendChild(toc)
65 })()
66 </script>