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/prefix.js')
-rw-r--r--lib/prefix.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/prefix.js b/lib/prefix.js
index 58b2af3a7..42f61103f 100644
--- a/lib/prefix.js
+++ b/lib/prefix.js
@@ -1,11 +1,14 @@
module.exports = prefix
-var npm = require("./npm.js")
+var npm = require('./npm.js')
-prefix.usage = "npm prefix [-g]"
+prefix.usage = 'npm prefix [-g]'
function prefix (args, silent, cb) {
- if (typeof cb !== "function") cb = silent, silent = false
+ if (typeof cb !== 'function') {
+ cb = silent
+ silent = false
+ }
if (!silent) console.log(npm.prefix)
process.nextTick(cb.bind(this, null, npm.prefix))
}