Welcome to mirror list, hosted at ThFree Co, Russian Federation.
1 2 3 4 5 6 7
const npm = require('./npm.js') const output = require('./utils/output.js') const usageUtil = require('./utils/usage.js') const cmd = (args, cb) => root(args).then(() => cb()).catch(cb) const usage = usageUtil('root', 'npm root [-g]') const root = async (args, cb) => output(npm.dir) module.exports = Object.assign(cmd, { usage })