Welcome to mirror list, hosted at ThFree Co, Russian Federation.

root.js « commands « lib - github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b814034def5ab6c56fefc24d202b7204900a627f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
const BaseCommand = require('../base-command.js')
class Root extends BaseCommand {
  static description = 'Display npm root'
  static name = 'root'
  static params = ['global']
  static ignoreImplicitWorkspace = true

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