3 var npm = require("./npm.js")
5 root.usage = "npm root\nnpm root -g\n(just prints the root folder)"
7 function root (args, silent, cb) {
8 if (typeof cb !== "function") cb = silent, silent = false
9 if (!silent) console.log(npm.dir)
10 process.nextTick(cb.bind(this, null, npm.dir))