Merge remote-tracking branch 'upstream/v0.10'
[platform/upstream/nodejs.git] / deps / npm / html / doc / api / npm-bin.html
1 <!doctype html>
2 <html>
3   <title>npm-bin</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="../api/npm-bin.html">npm-bin</a></h1> <p>Display npm bin folder</p>
10
11 <h2 id="SYNOPSIS">SYNOPSIS</h2>
12
13 <pre><code>npm.commands.bin(args, cb)</code></pre>
14
15 <h2 id="DESCRIPTION">DESCRIPTION</h2>
16
17 <p>Print the folder where npm will install executables.</p>
18
19 <p>This function should not be used programmatically.  Instead, just refer
20 to the <code>npm.bin</code> member.</p>
21 </div>
22 <p id="footer">npm-bin &mdash; npm@1.3.21</p>
23 <script>
24 ;(function () {
25 var wrapper = document.getElementById("wrapper")
26 var els = Array.prototype.slice.call(wrapper.getElementsByTagName("*"), 0)
27   .filter(function (el) {
28     return el.parentNode === wrapper
29         && el.tagName.match(/H[1-6]/)
30         && el.id
31   })
32 var l = 2
33   , toc = document.createElement("ul")
34 toc.innerHTML = els.map(function (el) {
35   var i = el.tagName.charAt(1)
36     , out = ""
37   while (i > l) {
38     out += "<ul>"
39     l ++
40   }
41   while (i < l) {
42     out += "</ul>"
43     l --
44   }
45   out += "<li><a href='#" + el.id + "'>" +
46     ( el.innerText || el.text || el.innerHTML)
47     + "</a>"
48   return out
49 }).join("\n")
50 toc.id = "toc"
51 document.body.appendChild(toc)
52 })()
53 </script>