2024-04-30 23:53:22 -07:00
|
|
|
const { output } = require('proc-log')
|
|
|
|
const BaseCommand = require('../base-cmd.js')
|
|
|
|
|
2021-03-11 17:54:23 -05:00
|
|
|
class Root extends BaseCommand {
|
2021-11-18 20:58:02 +00:00
|
|
|
static description = 'Display npm root'
|
|
|
|
static name = 'root'
|
|
|
|
static params = ['global']
|
2021-03-04 17:40:28 -05:00
|
|
|
|
2021-11-04 20:42:47 +00:00
|
|
|
async exec () {
|
2024-04-30 23:53:22 -07:00
|
|
|
output.standard(this.npm.dir)
|
2021-03-04 17:40:28 -05:00
|
|
|
}
|
|
|
|
}
|
2024-04-30 23:53:22 -07:00
|
|
|
|
2021-03-04 17:40:28 -05:00
|
|
|
module.exports = Root
|