4affcaccb2f27cd4bc362b8bccdc216b85b9ac60
[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 try to use the property
22 of the name field.</p>
23
24 <h2 id="CONFIGURATION">CONFIGURATION</h2>
25
26 <h3 id="browser">browser</h3>
27
28 <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>
29
30 <p>The browser that is called by the <code>npm repo</code> command to open websites.</p>
31
32 <h2 id="SEE-ALSO">SEE ALSO</h2>
33
34 <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>
35 </div>
36 <p id="footer">repo &mdash; npm@1.3.17</p>
37 <script>
38 ;(function () {
39 var wrapper = document.getElementById("wrapper")
40 var els = Array.prototype.slice.call(wrapper.getElementsByTagName("*"), 0)
41   .filter(function (el) {
42     return el.parentNode === wrapper
43         && el.tagName.match(/H[1-6]/)
44         && el.id
45   })
46 var l = 2
47   , toc = document.createElement("ul")
48 toc.innerHTML = els.map(function (el) {
49   var i = el.tagName.charAt(1)
50     , out = ""
51   while (i > l) {
52     out += "<ul>"
53     l ++
54   }
55   while (i < l) {
56     out += "</ul>"
57     l --
58   }
59   out += "<li><a href='#" + el.id + "'>" +
60     ( el.innerText || el.text || el.innerHTML)
61     + "</a>"
62   return out
63 }).join("\n")
64 toc.id = "toc"
65 document.body.appendChild(toc)
66 })()
67 </script>