Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bin.js')
-rw-r--r--lib/bin.js17
1 files changed, 10 insertions, 7 deletions
diff --git a/lib/bin.js b/lib/bin.js
index 62922447b..2e02617d3 100644
--- a/lib/bin.js
+++ b/lib/bin.js
@@ -1,19 +1,22 @@
module.exports = bin
-var npm = require("./npm.js")
-var osenv = require("osenv")
+var npm = require('./npm.js')
+var osenv = require('osenv')
-bin.usage = "npm bin [--global]"
+bin.usage = 'npm bin [--global]'
function bin (args, silent, cb) {
- if (typeof cb !== "function") cb = silent, silent = false
+ if (typeof cb !== 'function') {
+ cb = silent
+ silent = false
+ }
var b = npm.bin
- , PATH = osenv.path()
+ var PATH = osenv.path()
if (!silent) console.log(b)
process.nextTick(cb.bind(this, null, b))
- if (npm.config.get("global") && PATH.indexOf(b) === -1) {
- npm.config.get("logstream").write("(not in PATH env variable)\n")
+ if (npm.config.get('global') && PATH.indexOf(b) === -1) {
+ npm.config.get('logstream').write('(not in PATH env variable)\n')
}
}