PR-URL: https://github.com/nodejs/node/pull/46193 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
13 lines
303 B
JavaScript
13 lines
303 B
JavaScript
const BaseCommand = require('../base-command.js')
|
|
|
|
class Prefix extends BaseCommand {
|
|
static description = 'Display prefix'
|
|
static name = 'prefix'
|
|
static params = ['global']
|
|
static usage = ['[-g]']
|
|
|
|
async exec (args) {
|
|
return this.npm.output(this.npm.prefix)
|
|
}
|
|
}
|
|
module.exports = Prefix
|