node/deps/npm/lib/commands/root.js

15 lines
295 B
JavaScript

const { output } = require('proc-log')
const BaseCommand = require('../base-cmd.js')
class Root extends BaseCommand {
static description = 'Display npm root'
static name = 'root'
static params = ['global']
async exec () {
output.standard(this.npm.dir)
}
}
module.exports = Root