mirror of
https://github.com/nodejs/node.git
synced 2025-08-16 22:28:51 +02:00

PR-URL: https://github.com/nodejs/node/pull/52767 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
15 lines
335 B
JavaScript
15 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
|