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

prefix.js « lib - github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 42f61103f64a2e52e3da459c8a6268878a43eb0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module.exports = prefix

var npm = require('./npm.js')

prefix.usage = 'npm prefix [-g]'

function prefix (args, silent, cb) {
  if (typeof cb !== 'function') {
    cb = silent
    silent = false
  }
  if (!silent) console.log(npm.prefix)
  process.nextTick(cb.bind(this, null, npm.prefix))
}