node/deps/npm/lib/commands/prefix.js
npm CLI robot c923ce7414
deps: upgrade npm to 10.7.0
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>
2024-05-01 06:53:22 +00:00

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