5
0
node-binaries/node_modules/npm/lib/commands/prefix.js
2024-03-09 23:12:05 +08:00

15 lines
343 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]']
static ignoreImplicitWorkspace = true
async exec (args) {
return this.npm.output(this.npm.prefix)
}
}
module.exports = Prefix