]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/lib/root.js
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / lib / root.js
1 module.exports = root
2
3 var npm = require("./npm.js")
4
5 root.usage = "npm root\nnpm root -g\n(just prints the root folder)"
6
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))
11 }