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 use the <code>name</code> property.</p>
23 <h2 id="CONFIGURATION">CONFIGURATION</h2>
25 <h3 id="browser">browser</h3>
27 <ul><li>Default: OS X: <code>"open"</code>, Windows: <code>"start"</code>, Others: <code>"xdg-open"</code></li><li>Type: String</li></ul>
29 <p>The browser that is called by the <code>npm repo</code> command to open websites.</p>
31 <h2 id="SEE-ALSO">SEE ALSO</h2>
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>
35 <p id="footer">repo — npm@1.3.22</p>
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]/)
46 , toc = document.createElement("ul")
47 toc.innerHTML = els.map(function (el) {
48 var i = el.tagName.charAt(1)
58 out += "<li><a href='#" + el.id + "'>" +
59 ( el.innerText || el.text || el.innerHTML)
64 document.body.appendChild(toc)