]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/lib/bin.js
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / lib / bin.js
1 module.exports = bin
2
3 var npm = require("./npm.js")
4 var osenv = require("osenv")
5
6 bin.usage = "npm bin\nnpm bin -g\n(just prints the bin folder)"
7
8 function bin (args, silent, cb) {
9   if (typeof cb !== "function") cb = silent, silent = false
10   var b = npm.bin
11     , PATH = osenv.path()
12
13   if (!silent) console.log(b)
14   process.nextTick(cb.bind(this, null, b))
15
16   if (npm.config.get("global") && PATH.indexOf(b) === -1) {
17     npm.config.get("logstream").write("(not in PATH env variable)\n")
18   }
19 }