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

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

var npm = require("./npm.js")
  , output = require("./utils/output.js")

root.usage = "npm root\nnpm root -g\n(just prints the root folder)"

function root (args, cb) {
  output.write(npm.dir, function (er) { cb(er, npm.dir) })
}