blob: bd82bc9e3144d80f210d29f15237f88a27b86302 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
module.exports = bin
var npm = require("./npm.js")
, output = require("./utils/output.js")
bin.usage = "npm bin\nnpm bin -g\n(just prints the bin folder)"
function bin (args, cb) {
var path = require("path")
, b = npm.bin
, PATH = (process.env.PATH || "").split(":")
output.write(b, function (er) { cb(er, b) })
if (npm.config.get("global") && PATH.indexOf(b) === -1) {
output.write("(not in PATH env variable)"
,npm.config.get("logfd"))
}
}
|