summaryrefslogtreecommitdiff
path: root/deps/npm/lib/commands/root.js
blob: 7749c602456b7725aad35210c750ee6817d7e58a (plain)
1
2
3
4
5
6
7
8
9
10
11
const BaseCommand = require('../base-command.js')
class Root extends BaseCommand {
  static description = 'Display npm root'
  static name = 'root'
  static params = ['global']

  async exec () {
    this.npm.output(this.npm.dir)
  }
}
module.exports = Root