4 <meta http-equiv="content-type" value="text/html;utf-8">
5 <link rel="stylesheet" type="text/css" href="../../static/style.css">
9 <h1><a href="../cli/npm-repo.html">npm-repo</a></h1> <p>Open package repository page in the browser</p>
11 <h2 id="SYNOPSIS">SYNOPSIS</h2>
13 <pre><code>npm repo <pkgname>
14 npm repo (with no args in a package dir)</code></pre>
16 <h2 id="DESCRIPTION">DESCRIPTION</h2>
18 <p>This command tries to guess at the likely location of a package'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>
24 <h2 id="CONFIGURATION">CONFIGURATION</h2>
26 <h3 id="browser">browser</h3>
28 <ul><li>Default: OS X: <code>"open"</code>, Windows: <code>"start"</code>, Others: <code>"xdg-open"</code></li><li>Type: String</li></ul>
30 <p>The browser that is called by the <code>npm repo</code> command to open websites.</p>
32 <h2 id="SEE-ALSO">SEE ALSO</h2>
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>
36 <p id="footer">repo — npm@1.3.17</p>
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]/)
47 , toc = document.createElement("ul")
48 toc.innerHTML = els.map(function (el) {
49 var i = el.tagName.charAt(1)
59 out += "<li><a href='#" + el.id + "'>" +
60 ( el.innerText || el.text || el.innerHTML)
65 document.body.appendChild(toc)