3 var npm = require("./npm.js")
4 var osenv = require("osenv")
6 bin.usage = "npm bin\nnpm bin -g\n(just prints the bin folder)"
8 function bin (args, silent, cb) {
9 if (typeof cb !== "function") cb = silent, silent = false
13 if (!silent) console.log(b)
14 process.nextTick(cb.bind(this, null, b))
16 if (npm.config.get("global") && PATH.indexOf(b) === -1) {
17 npm.config.get("logstream").write("(not in PATH env variable)\n")