mirror of https://github.com/nodejs/node.git
16 lines
335 B
JavaScript
16 lines
335 B
JavaScript
const { output } = require('proc-log')
|
|
const BaseCommand = require('../base-cmd.js')
|
|
|
|
class Prefix extends BaseCommand {
|
|
static description = 'Display prefix'
|
|
static name = 'prefix'
|
|
static params = ['global']
|
|
static usage = ['[-g]']
|
|
|
|
async exec () {
|
|
return output.standard(this.npm.prefix)
|
|
}
|
|
}
|
|
|
|
module.exports = Prefix
|