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="../api/npm-bin.html">npm-bin</a></h1> <p>Display npm bin folder</p>
11 <h2 id="SYNOPSIS">SYNOPSIS</h2>
13 <pre><code>npm.commands.bin(args, cb)</code></pre>
15 <h2 id="DESCRIPTION">DESCRIPTION</h2>
17 <p>Print the folder where npm will install executables.</p>
19 <p>This function should not be used programmatically. Instead, just refer
20 to the <code>npm.bin</code> member.</p>
22 <p id="footer">npm-bin — npm@1.3.15</p>
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]/)
33 , toc = document.createElement("ul")
34 toc.innerHTML = els.map(function (el) {
35 var i = el.tagName.charAt(1)
45 out += "<li><a href='#" + el.id + "'>" +
46 ( el.innerText || el.text || el.innerHTML)
51 document.body.appendChild(toc)